mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
fix keyboard/locale not being installed, and kb select function
use the right var when checking if the selected keymap exists, don't skip prompt for keyboard layout if the user entered "/" and don't include the installation of the keymap/locale in the selection functions since no subvolumes are mounted when they're called
This commit is contained in:
parent
2fb11dbfb1
commit
0a379f40f1
1 changed files with 7 additions and 4 deletions
11
easy-arch.sh
11
easy-arch.sh
|
|
@ -194,7 +194,6 @@ locale_selector () {
|
||||||
locale_selector
|
locale_selector
|
||||||
fi
|
fi
|
||||||
sed -i "$locale/s/^#//" /etc/locale.gen
|
sed -i "$locale/s/^#//" /etc/locale.gen
|
||||||
echo "LANG=$locale" > /mnt/etc/locale.conf
|
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -204,14 +203,14 @@ keyboard_selector () {
|
||||||
case $kblayout in
|
case $kblayout in
|
||||||
'') print "US keyboard layout will be used by default."
|
'') print "US keyboard layout will be used by default."
|
||||||
kblayout="us";;
|
kblayout="us";;
|
||||||
'/') localectl list-keymaps;;
|
'/') localectl list-keymaps
|
||||||
*) if ! $(localectl list-keymaps | grep -Fxq $locale); then
|
keyboard_selector;;
|
||||||
|
*) if ! $(localectl list-keymaps | grep -Fxq $kblayout); then
|
||||||
print "The specified keymap doesn't exist."
|
print "The specified keymap doesn't exist."
|
||||||
keyboard_selector
|
keyboard_selector
|
||||||
fi
|
fi
|
||||||
print "Changing layout to $kblayout."
|
print "Changing layout to $kblayout."
|
||||||
loadkeys $kblayout
|
loadkeys $kblayout
|
||||||
echo "KEYMAP=$kblayout" > /mnt/etc/vconsole.conf;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -314,6 +313,10 @@ mount -o $mountopts,subvol=@var_pkgs $BTRFS /mnt/var/cache/pacman/pkg
|
||||||
chattr +C /mnt/var/log
|
chattr +C /mnt/var/log
|
||||||
mount $ESP /mnt/boot/
|
mount $ESP /mnt/boot/
|
||||||
|
|
||||||
|
# Configure selected keyboard layout and locale
|
||||||
|
echo "KEYMAP=$kblayout" > /mnt/etc/vconsole.conf
|
||||||
|
echo "LANG=$locale" > /mnt/etc/locale.conf
|
||||||
|
|
||||||
# Pacstrap (setting up a base sytem onto the new root).
|
# Pacstrap (setting up a base sytem onto the new root).
|
||||||
print "Installing the base system (it may take a while)."
|
print "Installing the base system (it may take a while)."
|
||||||
pacstrap /mnt --needed base $kernel $microcode linux-firmware $kernel-headers btrfs-progs grub grub-btrfs rsync efibootmgr snapper reflector base-devel snap-pac zram-generator >/dev/null
|
pacstrap /mnt --needed base $kernel $microcode linux-firmware $kernel-headers btrfs-progs grub grub-btrfs rsync efibootmgr snapper reflector base-devel snap-pac zram-generator >/dev/null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue