diff options
author | Matt Wilson <msw@redhat.com> | 2001-01-02 21:12:02 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-01-02 21:12:02 +0000 |
commit | f3fc288c7f30bcf95e3e54b369311d2b503eee4a (patch) | |
tree | f7068d14a854202acc29e419c4b08343d77ebfb7 /scripts | |
parent | 6ab476d1c4cce7c43acb965c249a761952c8069b (diff) | |
download | anaconda-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.i386 | 6 |
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. |