Merge "zypper-minimal: Set default locale env to C.UTF-8"
This commit is contained in:
commit
e8744cf32b
1 changed files with 5 additions and 2 deletions
|
@ -111,10 +111,13 @@ echo -e "# This file intentionally left blank\n" | \
|
|||
sudo tee $TARGET_ROOT/etc/resolv.conf
|
||||
|
||||
# set the most reliable UTF-8 locale
|
||||
echo -e 'LANG="en_US.UTF-8"' | \
|
||||
default_lang="C.UTF-8"
|
||||
sudo sed -i -e "s,^RC_LANG=.*,RC_LANG=\"$default_lang\"," \
|
||||
$TARGET_ROOT/etc/sysconfig/language
|
||||
echo -e "LANG=\"$default_lang\"" | \
|
||||
sudo tee $TARGET_ROOT/etc/locale.conf
|
||||
# default to UTC
|
||||
sudo chroot $TARGET_ROOT ln -sf /usr/share/zoneinfo/UTC \
|
||||
sudo chroot $TARGET_ROOT ln -sf /usr/share/zoneinfo/Etc/UTC \
|
||||
/etc/localtime
|
||||
|
||||
# RPM doesn't know whether files have been changed since install
|
||||
|
|
Loading…
Reference in a new issue