[Fedora-livecd-list] tools/livecd-iso-to-disk.sh

Jeremy Katz katzj at fedoraproject.org
Fri Mar 6 22:04:33 UTC 2009


 tools/livecd-iso-to-disk.sh |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 3ea5e21f5d49ce967d6dc71e1d543e42a0eff606
Author: Jeremy Katz <katzj at redhat.com>
Date:   Fri Mar 6 17:01:42 2009 -0500

    Tweak kernel/initrd paths for the multi-image case
    
    When you load the extra syslinux.cfg, we need to be sure we reference
    the kernel and initrd with full paths so the right ones are loaded.
    
    Go ahead and set that up.
    
    For those who want to try, add a section like the following to your
    top-level syslinux/syslinux.cfg
      label otherimage
        menu label Other Image
        kernel vesamenu.c32
        APPEND /livedir/syslinux/syslinux.cfg

diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index c803bc7..f840c6e 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -668,8 +668,11 @@ if [ -z "$multi" ]; then
     cleanup
   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
+  mv $USBMNT/$SYSLINUXPATH/isolinux.cfg $USBMNT/$SYSLINUXPATH/syslinux.cfg
   cleanup
-  echo "Multi-image mode selected; not setting up bootloader"
 fi
 
 echo "USB stick set up as live image!"





More information about the Fedora-livecd-list mailing list