makedist.inc.sh: don't set a default locale in multilanguage mode
This commit is contained in:
parent
69bf3cc142
commit
407165fffb
@ -22,31 +22,34 @@ install_rpms "filesystem gzip texinfo ldconfig bash libreadline glibc libncurses
|
|||||||
[ "$LANGUAGE" = "en" ] && KEYMAP=us || KEYMAP="$LANGUAGE"
|
[ "$LANGUAGE" = "en" ] && KEYMAP=us || KEYMAP="$LANGUAGE"
|
||||||
|
|
||||||
# configure localization
|
# configure localization
|
||||||
cat > $MOUNTDIR/etc/vconsole.conf << _EOF
|
if [ ! "$MULTILANGUAGE" ]; then
|
||||||
|
cat > $MOUNTDIR/etc/vconsole.conf << _EOF
|
||||||
KEYMAP=$KEYMAP
|
KEYMAP=$KEYMAP
|
||||||
FONT=lat9w-16
|
FONT=lat9w-16
|
||||||
FONT_MAP=8859-1_to_uni
|
FONT_MAP=8859-1_to_uni
|
||||||
FONT_UNIMAP=
|
FONT_UNIMAP=
|
||||||
UNICODE=1
|
UNICODE=1
|
||||||
_EOF
|
_EOF
|
||||||
|
else
|
||||||
# legacy
|
cat > $MOUNTDIR/etc/vconsole.conf << _EOF
|
||||||
cat > $MOUNTDIR/etc/sysconfig/keyboard << _EOF
|
FONT=lat9w-16
|
||||||
KEYMAP=$KEYMAP.map
|
FONT_MAP=8859-1_to_uni
|
||||||
XKB_LAYOUT=$KEYMAP
|
FONT_UNIMAP=
|
||||||
XKB_MODEL=pc105
|
UNICODE=1
|
||||||
XKB_OPTIONS=
|
|
||||||
_EOF
|
_EOF
|
||||||
|
fi
|
||||||
|
|
||||||
[ "$COUNTRY" ] && {
|
[ "$COUNTRY" ] && {
|
||||||
cat > $MOUNTDIR/etc/locale.conf << _EOF
|
if [ ! "$MULTILANGUAGE" ]; then
|
||||||
|
cat > $MOUNTDIR/etc/locale.conf << _EOF
|
||||||
LANG=${LANGUAGE}_${COUNTRY}.UTF-8
|
LANG=${LANGUAGE}_${COUNTRY}.UTF-8
|
||||||
LC_COLLATE=C
|
LC_COLLATE=C
|
||||||
_EOF
|
_EOF
|
||||||
# legacy
|
else
|
||||||
cat > $MOUNTDIR/etc/sysconfig/i18n << _EOF
|
cat > $MOUNTDIR/etc/locale.conf << _EOF
|
||||||
LANG=${LANGUAGE}_${COUNTRY}.UTF-8
|
LC_COLLATE=C
|
||||||
_EOF
|
_EOF
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user