From f7ab112f9a8acfd8482c9aab4b0c1790df5d395a Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 28 Nov 2007 14:05:05 -0600 Subject: 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 --- mkarchroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mkarchroot') 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 -- cgit v1.2.3-70-g09d2