summaryrefslogtreecommitdiffstats
path: root/scripts/mk-images
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-05-18 16:22:20 -0400
committerBill Nottingham <notting@redhat.com>2009-05-18 16:22:20 -0400
commit3af0018134db5547b022551a5d9f1e9ca9e3bb8c (patch)
tree401279bd501f31b57b05955cc1359885fc63972c /scripts/mk-images
parent6d743a394ebecebfa90c47afa698117a611efcab (diff)
downloadanaconda-3af0018134db5547b022551a5d9f1e9ca9e3bb8c.tar.gz
anaconda-3af0018134db5547b022551a5d9f1e9ca9e3bb8c.tar.xz
anaconda-3af0018134db5547b022551a5d9f1e9ca9e3bb8c.zip
Install a en_US.UTF-8 locale in the first stage image.
We need a UTF-8 locale so that isprint() and wc* do the right thing.
Diffstat (limited to 'scripts/mk-images')
-rwxr-xr-xscripts/mk-images2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/mk-images b/scripts/mk-images
index e7b30cea2..bd3ea5d47 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -617,6 +617,8 @@ makeinitrd() {
install -m 644 $IMGPATH/etc/group $MBD_DIR/etc/group
install -m 644 $IMGPATH/etc/nsswitch.conf $MBD_DIR/etc/nsswitch.conf
install -m 644 $IMGPATH/etc/hosts $MBD_DIR/etc/hosts
+ mkdir -p $MBD_DIR/usr/lib/locale
+ localedef -c -i en_US -f UTF-8 --prefix $MBD_DIR en_US
instbin $IMGPATH /usr/bin/mount $MBD_DIR /sbin/mount
for mountcmd in $IMGPATH/usr/sbin/mount.* ; do