grub: remove unnecessary config (#4277)

This commit is contained in:
hzyitc
2022-10-14 00:17:57 +08:00
committed by GitHub
parent f2ddee56a1
commit c70df26cc7

View File

@@ -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/"
}