diff options
author | Dan McGee <dan@archlinux.org> | 2007-11-28 14:05:05 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-11-28 14:44:59 -0600 |
commit | f7ab112f9a8acfd8482c9aab4b0c1790df5d395a (patch) | |
tree | e1aeb7e6e115ab9d7370368813bc475627173f6a | |
parent | 0986936143482f7867f9d57ca83f59be77e53c55 (diff) |
Use user's locale.gen instead of sed-magic
The sed-magic was wrong in many cases, including my default locale:
LANG=en_US.utf8
locale.gen line: en_US.UTF-8
If we copy the user's locale.gen file, we will generate all of their locales
instead of just the current one.
Signed-off-by: Dan McGee <dan@archlinux.org>
-rwxr-xr-x | mkarchroot | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -168,7 +168,7 @@ else cp /etc/resolv.conf "${working_dir}/etc/resolv.conf" echo "generating default locales" - sed -i "s|^#\(.*$LANG\)|\1|g" "${working_dir}/etc/locale.gen" + cp /etc/locale.gen "${working_dir}/etc/locale.gen" chroot "${working_dir}" locale-gen if [ ! -e "${working_dir}/.arch-chroot" ]; then |