summaryrefslogtreecommitdiffstats
path: root/mkarchroot
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-28 21:05:05 +0100
committerDan McGee <dan@archlinux.org>2007-11-28 21:44:59 +0100
commitf7ab112f9a8acfd8482c9aab4b0c1790df5d395a (patch)
treee1aeb7e6e115ab9d7370368813bc475627173f6a /mkarchroot
parent0986936143482f7867f9d57ca83f59be77e53c55 (diff)
downloaddevtools-f7ab112f9a8acfd8482c9aab4b0c1790df5d395a.tar.gz
devtools-f7ab112f9a8acfd8482c9aab4b0c1790df5d395a.tar.xz
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>
Diffstat (limited to 'mkarchroot')
-rwxr-xr-xmkarchroot2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkarchroot b/mkarchroot
index 2bb3413..dbe8344 100755
--- a/mkarchroot
+++ b/mkarchroot
@@ -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