fix: locale.gen search string
This commit is contained in:
parent
eee0b655dc
commit
c9787fa7c5
2 changed files with 3 additions and 3 deletions
2
base.sh
2
base.sh
|
|
@ -13,7 +13,7 @@ cp -rfT rootfs/ /
|
|||
ln -sf "/usr/share/zoneinfo/$tz" /etc/localtime
|
||||
hwclock --systohc
|
||||
for l in "${locales[@]}"; do
|
||||
sed -i "/#\s*$l.UTF-8/s/^#\s*//" /etc/locale.gen
|
||||
sed -i "/^#\s*$l.UTF-8/s/^#\s*//" /etc/locale.gen
|
||||
done
|
||||
locale-gen
|
||||
echo "LANG=$lang.UTF-8" > /etc/locale.conf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue