summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-01-18 16:12:24 +0000
committerJeremy Katz <katzj@redhat.com>2007-01-18 16:12:24 +0000
commit24d01808a35b3f827223602559e3731e854fae45 (patch)
tree435f62b3d18e7f8c56d9ac28dea1d48c16f0be59
parentf97016cfc982494ab2362bd0e530e2427622726f (diff)
downloadanaconda-24d01808a35b3f827223602559e3731e854fae45.tar.gz
anaconda-24d01808a35b3f827223602559e3731e854fae45.tar.xz
anaconda-24d01808a35b3f827223602559e3731e854fae45.zip
2007-01-18 Jeremy Katz <katzj@redhat.com>
* scripts/mk-images.x86 (SYSLINUX): Handle doing any of vesamenu with a jpg, using the script to convert to the lss file or just having the lss file. * bootdisk/i386/syslinux.cfg: Add bits so that we can support a menu if desired
-rw-r--r--ChangeLog6
-rwxr-xr-xbootdisk/i386/syslinux.cfg27
-rw-r--r--scripts/mk-images.x8627
3 files changed, 47 insertions, 13 deletions
diff --git a/ChangeLog b/ChangeLog
index 91132d294..c60c5a696 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2007-01-18 Jeremy Katz <katzj@redhat.com>
+ * scripts/mk-images.x86 (SYSLINUX): Handle doing any of vesamenu
+ with a jpg, using the script to convert to the lss file or just
+ having the lss file.
+ * bootdisk/i386/syslinux.cfg: Add bits so that we can support a
+ menu if desired
+
* installclasses/custom.py: Remove obsolete file
* installclasses/personal_desktop.py: Likewise.
* installclasses/server.py: Likewise.
diff --git a/bootdisk/i386/syslinux.cfg b/bootdisk/i386/syslinux.cfg
index 0c6dbf865..055a14eea 100755
--- a/bootdisk/i386/syslinux.cfg
+++ b/bootdisk/i386/syslinux.cfg
@@ -1,20 +1,37 @@
default linux
prompt 1
timeout 600
+
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
+
+menu background splash.jpg
+menu title Welcome to @PRODUCT@!
+menu color border 0 #ffffffff #00000000
+menu color sel 0 #ffffffff #ff000000
+menu color title 0 #ffffffff #00000000
+menu color tabmsg 0 #ffffffff #00000000
+menu color unsel 0 #ffffffff #00000000
+menu color hotsel 0 #ff000000 #ffffffff
+menu color hotkey 0 #ffffffff #ff000000
+
label linux
+ menu label ^Install or upgrade an existing system
+ menu default
kernel vmlinuz
- append initrd=initrd.img
+ append initrd=initrd.img
label text
+ menu label Install or upgrade an existing system (^text mode)
kernel vmlinuz
- append initrd=initrd.img text
-label ks
+ append initrd=initrd.img text
+label rescue
+ menu label ^Rescue installed system
kernel vmlinuz
- append ks initrd=initrd.img
+ append initrd=initrd.img rescue
label local
- localboot 1
+ menu label Boot from ^local drive
+ localboot
diff --git a/scripts/mk-images.x86 b/scripts/mk-images.x86
index 1afdffb9b..931e94662 100644
--- a/scripts/mk-images.x86
+++ b/scripts/mk-images.x86
@@ -18,15 +18,26 @@ prepareBootTree() {
cp $KERNELROOT/boot/vmlinuz-* $MBD_BOOTTREE/vmlinuz
if [ -n "$NEEDGR" ]; then
- $IMGPATH/usr/lib/anaconda-runtime/splashtolss.sh $BOOTDISKDIR/syslinux-splash.png $BOOTDISKDIR/splash.lss
- if [ $? != 0 ]; then
- echo $0: Failed to create splash.lss
- exit 1
- fi
- cp $BOOTDISKDIR/splash.lss $MBD_BOOTTREE/splash.lss
- rm -f $MBD_BOOTTREE/syslinux-splash.png
+ if [ -f $IMGPATH/usr/lib/anaconda-runtime/splash.jpg ]; then
+ cp $IMGPATH/usr/lib/anaconda-runtime/splash.jpg $MBD_BOOTTREE/splash.jpg
+ cp $IMGPATH/usr/lib/syslinux/vesamenu.c32 $MBD_BOOTTREE/vesamenu.c32
+ sed -ie s'/default linux/default vesamenu.c32/g' $MBD_BOOTTREE/syslinux.cfg
+ sed -ie 's/prompt 1/#prompt 1/g' $MBD_BOOTTREE/syslinux.cfg
+ elif [ -x $IMGPATH/usr/lib/anaconda-runtime/splashtolss.sh ]; then
+ $IMGPATH/usr/lib/anaconda-runtime/splashtolss.sh $BOOTDISKDIR/syslinux-splash.png $BOOTDISKDIR/splash.lss
+ if [ $? != 0 ]; then
+ echo $0: Failed to create splash.lss
+ exit 1
+ fi
+ cp $BOOTDISKDIR/splash.lss $MBD_BOOTTREE/splash.lss
+ rm -f $MBD_BOOTTREE/syslinux-splash.png
+ elif [ -f $IMGPATH/usr/lib/anaconda-runtime/splash.lss ]; then
+ cp $IMGPATH/usr/lib/anaconda-runtime/splash.lss $MBD_BOOTTREE/splash.lss
+ fi
fi
+ sed -ie "s/@PRODUCT@/$PRODUCT/g" $MBD_BOOTTREE/syslinux.cfg
+
rm -f $MBD_BOOTTREE/memtest*
for file in $BOOTDISKDIR/*.msg; do
filename=`basename $file`
@@ -82,7 +93,7 @@ makeBootImages() {
# copy in memtest if present
if [ -f $IMGPATH/usr/lib/anaconda-runtime/boot/memtest* ]; then
cp $IMGPATH/usr/lib/anaconda-runtime/boot/memtest* $MBD_BOOTTREE/memtest
- echo -e "label memtest86\n kernel memtest\n append -\n" >> $MBD_BOOTTREE/isolinux.cfg
+ echo -e "label memtest86\n menu label ^Memory test\n kernel memtest\n append -\n" >> $MBD_BOOTTREE/isolinux.cfg
fi
else
echo "No isolinux binaries. Skipping isolinux creation"