From c70df26cc72883a3928af02698754d8ee28cbcc2 Mon Sep 17 00:00:00 2001 From: hzyitc Date: Fri, 14 Oct 2022 00:17:57 +0800 Subject: [PATCH] grub: remove unnecessary config (#4277) --- extensions/grub.sh | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/extensions/grub.sh b/extensions/grub.sh index b488fdd26c..777e4e7756 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/" }