installer: disable locale setting with musl.

This commit is contained in:
Juan RP 2015-05-29 17:44:31 +02:00
parent c4ca2a33fa
commit ec5a92c270

View File

@ -323,13 +323,14 @@ menu_locale() {
} }
set_locale() { set_locale() {
local LOCALE=$(get_option LOCALE) if [ -f $TARGETDIR/etc/default/libc-locales ]; then
local LOCALE=$(get_option LOCALE)
sed -i -e "s|LANG=.*|LANG=$LOCALE|g" $TARGETDIR/etc/locale.conf sed -i -e "s|LANG=.*|LANG=$LOCALE|g" $TARGETDIR/etc/locale.conf
# Uncomment locale from /etc/default/libc-locales and regenerate it. # Uncomment locale from /etc/default/libc-locales and regenerate it.
sed -e "/${LOCALE}/s/^\#//" -i $TARGETDIR/etc/default/libc-locales sed -e "/${LOCALE}/s/^\#//" -i $TARGETDIR/etc/default/libc-locales
echo "Running xbps-reconfigure -f glibc-locales ..." >$LOG echo "Running xbps-reconfigure -f glibc-locales ..." >$LOG
chroot $TARGETDIR xbps-reconfigure -f glibc-locales >$LOG 2>&1 chroot $TARGETDIR xbps-reconfigure -f glibc-locales >$LOG 2>&1
fi
} }
menu_timezone() { menu_timezone() {