diff --git a/extensions/grub.sh b/extensions/grub.sh index b488fdd26..777e4e775 100644 --- a/extensions/grub.sh +++ b/extensions/grub.sh @@ -115,16 +115,6 @@ pre_umount_final_image__install_grub() { # Remove host-side config. rm -f "${MOUNT}"/etc/default/grub.d/99-armbian-host-side.cfg - local root_uuid - root_uuid=$(blkid -s UUID -o value "${LOOP}p1") # get the uuid of the root partition, this has been transposed - - # Create /boot/efi/EFI/BOOT/grub.cfg (EFI/ESP) which will load /boot/grub/grub.cfg (in the rootfs, generated by update-grub) - cat <<- grubEfiCfg > "${MOUNT}"/boot/efi/EFI/BOOT/grub.cfg - search.fs_uuid ${root_uuid} root - set prefix=(\$root)'/boot/grub' - configfile \$prefix/grub.cfg - grubEfiCfg - umount_chroot "$chroot_target/" }