summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-12-27 20:40:39 +0000
committerMatt Wilson <msw@redhat.com>2000-12-27 20:40:39 +0000
commita83b98978164b6810e5136618d104729273fa267 (patch)
tree169dafb839fef14f4b56ca789510cea27f159a6d /scripts
parentf1cdb87d0a7f3840daeb0f1ef5ed9850efe95626 (diff)
downloadanaconda-a83b98978164b6810e5136618d104729273fa267.tar.gz
anaconda-a83b98978164b6810e5136618d104729273fa267.tar.xz
anaconda-a83b98978164b6810e5136618d104729273fa267.zip
don't use vga= for japanese, add lang= for translated boot imges
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mk-images.i3865
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/mk-images.i386 b/scripts/mk-images.i386
index b21521b9a..6901e0093 100644
--- a/scripts/mk-images.i386
+++ b/scripts/mk-images.i386
@@ -16,6 +16,11 @@ prepareBootImage() {
cp $MBD_FSIMAGE $MBD_BOOTTREE/initrd.img
cp $KERNELROOT/boot/vmlinuz-* $MBD_BOOTTREE/vmlinuz
if [ -d $BOOTDISKDIR/$BOOTLANG ]; then
+ if [ $BOOTLANG = "ja_JP" ]; then
+ EXTRA='-e "s/ vga=.*//"'
+ fi
+ sed -e "s/initrd.img/initrd.img lang=$BOOTLANG/g" $EXTRA < $MBD_BOOTTREE/syslinux.cfg > $MBD_BOOTTREE/syslinux.cfg-
+ mv -f $MBD_BOOTTREE/syslinux.cfg- $MBD_BOOTTREE/syslinux.cfg
cp $BOOTDISKDIR/$BOOTLANG/*.msg $MBD_BOOTTREE
if [ $? != 0 ]; then
echo $0: Failed to copy messages from $BOOTDISKDIR/$BOOTLANG to $MBD_BOOTTREE.