[Fedora-livecd-list] [PATCH] small fix for --multi mode

Jason Farrell farrellj at gmail.com
Wed Jun 17 23:53:15 UTC 2009


One other tiny patch for the mostly unused "--multi" mode. The
"initrd=" in isolinux.cfg wasn't getting replaced, and, it's easier if
the $LIVEOS/$SYSLINUXPATH paths are absolute when editing the "main"
/syslinux/syslinux.cfg or /syslinux/extlinux.conf menu entries to add
them for multibooting.

I had a larger ambition for expanding upon the "--multi" mode
creation, but I read in an earlier message that the livecd-iso-to-disk
script is eventually going to be phased out in favor of a better CLI
interface on the python liveusb-creator. So, looking forward to seeing
live image + *installer image* multiboot creator capability soon, as
it currently takes a bit too much manual syslinux hackery to do it.
Fedora Ambassadors, and many others, could definitely use an easier
way to create a multi-image bootable usbkey. 8GB+ keys are only around
$20 these days...


[root at nano livecd-foo]# diff -Naur livecd-iso-to-disk.sh.orig
livecd-iso-to-disk.sh
--- livecd-iso-to-disk.sh.orig  2009-06-17 17:57:21.000000000 -0400
+++ livecd-iso-to-disk.sh       2009-06-17 19:33:20.109631051 -0400
@@ -691,8 +696,8 @@
   fi
 else
   # we need to do some more config file tweaks for multi-image mode
-  sed -i -e "s;kernel vm;kernel $LIVEOS/syslinux/vm;"
$USBMNT/$SYSLINUXPATH/isolinux.cfg
-  sed -i -e "s;initrd i;initrd $LIVEOS/syslinux/i;"
$USBMNT/$SYSLINUXPATH/isolinux.cfg
+  sed -i -e "s;kernel vm;kernel /$LIVEOS/syslinux/vm;"
$USBMNT/$SYSLINUXPATH/isolinux.cfg
+  sed -i -e "s;initrd=i;initrd=/$LIVEOS/syslinux/i;"
$USBMNT/$SYSLINUXPATH/isolinux.cfg
   mv $USBMNT/$SYSLINUXPATH/isolinux.cfg $USBMNT/$SYSLINUXPATH/syslinux.cfg
   cleanup
 fi


--
Jason "zcat" Farrell




More information about the Fedora-livecd-list mailing list