diff --git a/rootfs/scripts/build-ubuntu-rootfs.sh b/rootfs/scripts/build-ubuntu-rootfs.sh index bddd047..dc5f46b 100755 --- a/rootfs/scripts/build-ubuntu-rootfs.sh +++ b/rootfs/scripts/build-ubuntu-rootfs.sh @@ -395,7 +395,7 @@ echo '[CHROOT] Installing manifest packages (if any)...' /install_manifest_pkgs.sh || true echo '[CHROOT] Detecting installed kernel version...' -kernel_ver=\$(ls /boot/vmlinuz-* | sed 's|.*/vmlinuz-||' | sort -V | tail -n1) +kernel_ver=\$(echo "$KERNEL_DEB" | sed -n 's/linux-kernel-\(.*\)-arm64\.deb/\1/p') crd_dtb_path=\"/lib/firmware/\$kernel_ver/device-tree/x1e80100-crd.dtb\" echo '[CHROOT] Writing GRUB configuration...'