Edit /etc/locale.gen instead of overwrite.

I need this for archiso, instead of maintaining a private copy.

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
Gerardo Exequiel Pozzi 2011-06-17 18:13:55 -03:00 committed by Pierre Schmitz
parent c57284e053
commit 1febb47b2c
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ else
fi
if [ -e "${working_dir}/etc/locale.gen" ]; then
echo -e 'en_US.UTF-8 UTF-8\nde_DE.UTF-8 UTF-8' > "${working_dir}/etc/locale.gen"
sed -i 's@^#\(en_US\|de_DE\)\(\.UTF-8\)@\1\2@' "${working_dir}/etc/locale.gen"
chroot "${working_dir}" locale-gen
fi