From 2e7c611d1b25c6ccf99585089c9372bdd3701f88 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Fri, 22 Dec 2017 18:28:58 +0000 Subject: Fix UEFI boot from DVD. --- lib/MGA/DrakISO/BuildBoot.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/MGA/DrakISO/BuildBoot.pm') diff --git a/lib/MGA/DrakISO/BuildBoot.pm b/lib/MGA/DrakISO/BuildBoot.pm index bcf07ea..bd62711 100755 --- a/lib/MGA/DrakISO/BuildBoot.pm +++ b/lib/MGA/DrakISO/BuildBoot.pm @@ -236,6 +236,11 @@ sub prepare_iso_bootloader { eval { rm_rf($esp_image) }; run_("/sbin/mkdosfs", "-F12", "-C", $esp_image, "4096"); run_("mcopy", "-s", "-i", $esp_image, $efi_root_dir, "::"); + + # Now we've built the ESP image, we can delete the grub2 image. We need + # to leave the grub2.cfg file, as DVD boot sets the initial grub2 root + # location to the iso9960 partition, not the ESP. + rm_rf($efi_boot_dir . '/bootx64.efi'); } sub build_grub2_eltorito_img { -- cgit v1.2.1