[Fedora-livecd-list] 2 commits - tools/livecd-iso-to-disk.sh tools/livecd-iso-to-pxeboot.sh
tools/livecd-iso-to-disk.sh| 15 +++ tools/livecd-iso-to-pxeboot.sh |2 +- 2 files changed, 16 insertions(+), 1 deletion(-) New commits: commit c5527ec56bfa7a8dda73983c7dcb60df7f8be7a7 Author: Alan Pevec <[EMAIL PROTECTED]> Date: Wed Sep 17 09:55:17 2008 +0200 fix extracting boot parameters from isolinux.cfg Signed-off-by: Alan Pevec <[EMAIL PROTECTED]> diff --git a/tools/livecd-iso-to-pxeboot.sh b/tools/livecd-iso-to-pxeboot.sh index 8b5571a..280d354 100755 --- a/tools/livecd-iso-to-pxeboot.sh +++ b/tools/livecd-iso-to-pxeboot.sh @@ -103,7 +103,7 @@ fi # Get boot append line from original cd image. if [ -f $CDMNT/isolinux/isolinux.cfg ]; then -APPEND=$(grep -m1 append isolinux.cfg | sed -e "s#CDLABEL=[^ ]*#/$ISOBASENAME#" -e "s/ *append *//") +APPEND=$(grep -m1 append $CDMNT/isolinux/isolinux.cfg | sed -e "s#CDLABEL=[^ ]*#/$ISOBASENAME#" -e "s/ *append *//") fi # pxelinux configuration. commit 251b35fe8906817749c5ac3e0dedaa2952cb9039 Author: Jeremy Katz <[EMAIL PROTECTED]> Date: Wed Sep 10 13:18:57 2008 -0400 Allow setting the default XO boot target Using --xosd or --xousb will set up a boot/olpc.fth defaulting to booting from the SD or the USB, respectively, for use with the XO auto-boot diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh index f3667d1..b9b877b 100755 --- a/tools/livecd-iso-to-disk.sh +++ b/tools/livecd-iso-to-disk.sh @@ -257,6 +257,14 @@ while [ $# -gt 2 ]; do --xo) xo=1 ;; +--xo-sd) +xo=1 +xosd=1 +;; +--xo-usb) +xo=1 +xousb=1 +;; --extra-kernel-args) kernelargs=$2 shift @@ -505,6 +513,13 @@ unfreeze boot sd:\syslinux\vmlinuz0 EOF +if [ -n "$xosd" ]; then + mkdir $USBMNT/boot + cp $USBMNT/olpc-sd.fth $USBMNT/boot/olpc.fth +elif [ -n "$xousb" ]; then + mkdir $USBMNT/boot + cp $USBMNT/olpc-usb.fth $USBMNT/boot/olpc.fth +fi fi echo "Installing boot loader" -- Fedora-livecd-list mailing list Fedora-livecd-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-livecd-list
[Fedora-livecd-list] 2 commits - tools/livecd-iso-to-disk.sh tools/livecd-iso-to-pxeboot.sh
tools/livecd-iso-to-disk.sh|2 ++ tools/livecd-iso-to-pxeboot.sh |8 +--- 2 files changed, 7 insertions(+), 3 deletions(-) New commits: commit b6c69841c1e372173b8633cbd9ede0baa7847aba Author: Jeremy Katz Date: Fri Mar 20 10:46:49 2009 -0400 Handle changed syslinux paths for livecd-iso-to-pxeboot as well diff --git a/tools/livecd-iso-to-pxeboot.sh b/tools/livecd-iso-to-pxeboot.sh index 280d354..22810d9 100755 --- a/tools/livecd-iso-to-pxeboot.sh +++ b/tools/livecd-iso-to-pxeboot.sh @@ -42,8 +42,8 @@ if [ $(id -u) != 0 ]; then fi # Check pxelinux.0 exists. -if [ ! -f /usr/lib/syslinux/pxelinux.0 ]; then -echo "Warning: /usr/lib/syslinux/pxelinux.0 not found." +if [ ! -f /usr/share/syslinux/pxelinux.0 -a ! -f /usr/lib/syslinux/pxelinux.0 ]; then +echo "Warning: pxelinux.0 not found." echo "Make sure syslinux or pxelinux is installed on this system." fi @@ -95,7 +95,9 @@ ISODIRNAME=`dirname "$ISO"` cp $CDMNT/isolinux/vmlinuz0 tftpboot/vmlinuz0 # pxelinux bootloader. -if [ -f /usr/lib/syslinux/pxelinux.0 ]; then +if [ -f /usr/share/syslinux/pxelinux.0 ]; then +cp /usr/share/syslinux/pxelinux.0 tftpboot +elif [ -f /usr/lib/syslinux/pxelinux.0 ]; then cp /usr/lib/syslinux/pxelinux.0 tftpboot else echo "Warning: You need to add pxelinux.0 to tftpboot/ subdirectory" commit d2c2a0c911090cb55e56e207fba0fa472913e5dd Author: Jeremy Katz Date: Fri Mar 20 10:44:09 2009 -0400 Don't prompt about overwriting files from mtools (#491234) New syslinux uses mtools for the installer and then mmove prompts about overwriting the existing ldlinux.sys. So let's just remove it as there's not a good way to force mmove to not ask diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh index f840c6e..f0c7331 100755 --- a/tools/livecd-iso-to-disk.sh +++ b/tools/livecd-iso-to-disk.sh @@ -654,6 +654,8 @@ if [ -z "$multi" ]; then # syslinux expects the config to be named syslinux.cfg # and has to run with the file system unmounted mv $USBMNT/$SYSLINUXPATH/isolinux.cfg $USBMNT/$SYSLINUXPATH/syslinux.cfg +# deal with mtools complaining about ldlinux.sys +if [ -f $USBMNT/$SYSLINUXPATH/ldlinux.sys ] ; then rm -f $USBMNT/$SYSLINUXPATH/ldlinux.sys ; fi cleanup if [ -n "$SYSLINUXPATH" ]; then syslinux -d $SYSLINUXPATH $USBDEV -- Fedora-livecd-list mailing list Fedora-livecd-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-livecd-list