zypper-minimal: Set default locale env to C.UTF-8
Currently in Leap 42.x the bootup scripts don't actually make use of locale.conf yet, so we need to set it in /etc/sysconfig/language. For future distro compatibility the setting in locale.conf is kept in sync. Also fix default timezone link. Change-Id: I59e5dccad8a5ae132d3039851e7aa1db86a609d7
This commit is contained in:
parent
bc6c928bb9
commit
4e258bdad6
@ -105,10 +105,13 @@ echo -e "# This file intentionally left blank\n" | \
|
|||||||
sudo tee $TARGET_ROOT/etc/resolv.conf
|
sudo tee $TARGET_ROOT/etc/resolv.conf
|
||||||
|
|
||||||
# set the most reliable UTF-8 locale
|
# 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
|
sudo tee $TARGET_ROOT/etc/locale.conf
|
||||||
# default to UTC
|
# 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
|
/etc/localtime
|
||||||
|
|
||||||
# RPM doesn't know whether files have been changed since install
|
# RPM doesn't know whether files have been changed since install
|
||||||
|
Loading…
Reference in New Issue
Block a user