diff options
Diffstat (limited to 'lib/MGA/DrakISO/BuildBoot.pm')
-rwxr-xr-x | lib/MGA/DrakISO/BuildBoot.pm | 5 |
1 files changed, 5 insertions, 0 deletions
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 { |