On Fri, 17 Jun 2011 18:13:55 -0300, Gerardo Exequiel Pozzi wrote:
> I need this for archiso, instead of maintaining a private copy.
> 
> Signed-off-by: Gerardo Exequiel Pozzi <[email protected]>
> ---
>  mkarchroot |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/mkarchroot b/mkarchroot
> index f385731..7a7fbbe 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

Why is this needed? Do you somehow need a complete list of all
available locales?

-- 
Pierre Schmitz, https://users.archlinux.de/~pierre

Reply via email to