[Fedora-livecd-list] [PATCH] localboot is available only in ISOLINUX and PXELINUX

Alan Pevec apevec at redhat.com
Fri Jan 23 17:53:45 UTC 2009


so it should be removed from sys/extlinux.cfg to avoid error message:
unknown keyword in syslinux.cfg
It is masked by the menu, shows up only with custom image builds where
isolinux.cfg is modified.
See http://syslinux.zytor.com/wiki/index.php/SYSLINUX#LOCALBOOT_type_.5BISOLINUX.2C_PXELINUX.5D

Signed-off-by: Alan Pevec <apevec at redhat.com>
---
 tools/livecd-iso-to-disk.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index d37a2e9..364deb1 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -544,6 +544,9 @@ echo "Updating boot config file"
 # adjust label and fstype
 sed -i -e "s/CDLABEL=[^ ]*/$USBLABEL/" -e "s/rootfstype=[^ ]*/rootfstype=$USBFS/" $BOOTCONFIG
 if [ -n "$kernelargs" ]; then sed -i -e "s/liveimg/liveimg ${kernelargs}/" $BOOTCONFIG ; fi
+# localboot is available only in ISOLINUX and PXELINUX
+# http://syslinux.zytor.com/wiki/index.php/SYSLINUX#LOCALBOOT_type_.5BISOLINUX.2C_PXELINUX.5D
+sed -i -e '/label local/d' -e '/localboot 0xffff/d' $BOOTCONFIG
 
 if [ "$overlaysizemb" -gt 0 ]; then
     echo "Initializing persistent overlay file"
-- 
1.6.0.6




More information about the livecd mailing list