[Fedora-livecd-list] edit-lived for Fedora 13

Marc Herbert Marc.Herbert at gmail.com
Wed Jul 28 16:51:05 UTC 2010


This minor patch seems to make the recently committed (and
tremendously useful) "edit-lived" compatible with a vanilla Fedora 13
system (=livecd-tools release 31.fc12), and possibly earlier systems
as well.

Not really sure what should be done with it.


diff --git a/tools/edit-livecd b/tools/edit-livecd
index 809b015..46642b3 100755
--- a/tools/edit-livecd
+++ b/tools/edit-livecd
@@ -279,6 +279,10 @@ def parse_options(args):
     return (args[0], options)
 
 def rebuild_iso_symlinks(isodir):
+
+    # Compatibility with livecd-tools release 31
+    if not os.access(isodir + "EFI", os.F_OK): return
+
     # remove duplicate files and rebuild symlinks to reduce iso size
     efi_vmlinuz = "%s/EFI/boot/vmlinuz0" % isodir
     isolinux_vmlinuz = "%s/isolinux/vmlinuz0" % isodir



More information about the livecd mailing list