[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 3/3] 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.

Signed-off-by: Bill Nottingham <notting redhat com>
---
 scripts/mk-images |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/scripts/mk-images b/scripts/mk-images
index e7b30ce..bd3ea5d 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
-- 
1.6.2.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]