Commit a336e5a9 authored by Aaron Griffin's avatar Aaron Griffin
Browse files

Generate current locale in new chroots by default



This is a slightly hackish way of auto-filling locale information based on the
locale at the time of chroot building.

Further locale changes must be done manually.

Signed-off-by: default avatarAaron Griffin <aaronmgriffin@gmail.com>
parent 192b24f8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -136,6 +136,10 @@ else
        ldconfig -r "${working_dir}"
    fi

    echo "generating default locales"
    sed -i "s|^#\(.*$LANG\)|\1|g" /etc/locale.gen
    locale-gen

    if [ ! -e "${working_dir}/.arch-chroot" ]; then
        date +%s > "${working_dir}/.arch-chroot"
    fi