mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 11:30:55 +00:00
Revert "sed changes"
This commit is contained in:
parent
70ffe98541
commit
ad71eba1a3
1 changed files with 3 additions and 3 deletions
|
|
@ -211,7 +211,7 @@ locale_selector () {
|
|||
'') locale="en_US.UTF-8"
|
||||
info_print "$locale will be the default locale."
|
||||
return 0;;
|
||||
'/') sed -E '/^#( +|$)/d;s/^#| *$//g;s/ .*/ (Charset:&)/' /etc/locale.gen | less -M
|
||||
'/') sed -E '/^# +|^#$/d;s/^#| *$//g;s/ .*/ (Charset:&)/' /etc/locale.gen | less -M
|
||||
clear
|
||||
return 1;;
|
||||
*) if ! grep -q "^#\?$(sed 's/[].*[]/\\&/g' <<< $locale) " /etc/locale.gen; then
|
||||
|
|
@ -363,7 +363,7 @@ info_print "Generating a new fstab."
|
|||
genfstab -U /mnt >> /mnt/etc/fstab
|
||||
|
||||
# Configure selected locale and console keymap
|
||||
sed -i "/^#$locale /s/^#//" /mnt/etc/locale.gen
|
||||
sed -i "/^#$locale/s/^#//" /mnt/etc/locale.gen
|
||||
echo "LANG=$locale" > /mnt/etc/locale.conf
|
||||
echo "KEYMAP=$kblayout" > /mnt/etc/vconsole.conf
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue