summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-01-02 21:12:02 +0000
committerMatt Wilson <msw@redhat.com>2001-01-02 21:12:02 +0000
commitf3fc288c7f30bcf95e3e54b369311d2b503eee4a (patch)
treef7068d14a854202acc29e419c4b08343d77ebfb7 /scripts
parent6ab476d1c4cce7c43acb965c249a761952c8069b (diff)
downloadanaconda-f3fc288c7f30bcf95e3e54b369311d2b503eee4a.tar.gz
anaconda-f3fc288c7f30bcf95e3e54b369311d2b503eee4a.tar.xz
anaconda-f3fc288c7f30bcf95e3e54b369311d2b503eee4a.zip
only make the lang= change if BOOTLANG is set
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mk-images.i3866
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/mk-images.i386 b/scripts/mk-images.i386
index 2627bac1e..93eeab7a7 100644
--- a/scripts/mk-images.i386
+++ b/scripts/mk-images.i386
@@ -21,8 +21,10 @@ prepareBootImage() {
sed -e "s/ vga=.*//g" < $MBD_BOOTTREE/syslinux.cfg > $MBD_BOOTTREE/syslinux.cf2
mv -f $MBD_BOOTTREE/syslinux.cf2 $MBD_BOOTTREE/syslinux.cfg
fi
- sed -e "s/initrd.img/initrd.img lang=$BOOTLANG/g" < $MBD_BOOTTREE/syslinux.cfg > $MBD_BOOTTREE/syslinux.cf2
- mv -f $MBD_BOOTTREE/syslinux.cf2 $MBD_BOOTTREE/syslinux.cfg
+ if [ -n $BOOTLANG ]; then
+ sed -e "s/initrd.img/initrd.img lang=$BOOTLANG/g" < $MBD_BOOTTREE/syslinux.cfg > $MBD_BOOTTREE/syslinux.cf2
+ mv -f $MBD_BOOTTREE/syslinux.cf2 $MBD_BOOTTREE/syslinux.cfg
+ fi
cp $BOOTDISKDIR/$BOOTLANG/*.msg $MBD_BOOTTREE
if [ $? != 0 ]; then
echo $0: Failed to copy messages from $BOOTDISKDIR/$BOOTLANG to $MBD_BOOTTREE.