From 1febb47b2c689ffec7b936885ab8dd36fc24b18b Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Fri, 17 Jun 2011 18:13:55 -0300 Subject: Edit /etc/locale.gen instead of overwrite. I need this for archiso, instead of maintaining a private copy. Signed-off-by: Gerardo Exequiel Pozzi Signed-off-by: Pierre Schmitz --- mkarchroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mkarchroot') diff --git a/mkarchroot b/mkarchroot index 5b6be88..8e74c54 100755 --- a/mkarchroot +++ b/mkarchroot @@ -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 -- cgit v1.2.3-70-g09d2