mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
grub: remove unnecessary config (#4277)
This commit is contained in:
@@ -115,16 +115,6 @@ pre_umount_final_image__install_grub() {
|
|||||||
# Remove host-side config.
|
# Remove host-side config.
|
||||||
rm -f "${MOUNT}"/etc/default/grub.d/99-armbian-host-side.cfg
|
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/"
|
umount_chroot "$chroot_target/"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user