[Fedora-livecd-list] " def _generate_efiboot(self, isodir)" breaks the livecd build

Joshua C. joshuacov at googlemail.com
Wed Mar 7 08:25:25 UTC 2012


The following commit breaks the builds on f16 because the files don't exist:

commit e4d1c7ef9796930bc42e91046b8720422c60c742
Author: Matthew Garrett <m... at redhat.com>
Date:   Wed Feb 29 14:57:57 2012 -0500

    Add support for generating EFI-bootable hybrid images

    This patch adds support for generating efiboot and macboot images, passing
    them to the ISO generation and then performing the appropriate isohybrid
    call.

diff --git a/imgcreate/live.py b/imgcreate/live.py
index 7eefbc3..685a306 100755
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -227,9 +227,19 @@ class LiveImageCreatorBase(LoopImageCreator):
             self.__isodir = self._mkdtemp("iso-")
         return self.__isodir

+    def _generate_efiboot(self, isodir):
+        """Generate EFI boot images."""
+        if not os.path.exists(self._instroot +
"/boot/efi/EFI/redhat/grub.efi"):
+            return False
+        subprocess.call(["mkefiboot", isodir + "/EFI/boot",
+                         isodir + "/isolinux/efiboot.img"])
+        subprocess.call(["mkefiboot", "-a", isodir + "/EFI/boot",
+                         isodir + "/isolinux/macboot.img"])
+

macboot.img and efiboot.img cannot be found in any syslinux* package.


More information about the livecd mailing list