This commit is contained in:
Tommaso Chiti 2022-05-27 13:32:10 +02:00
parent 1a1e5f3e0d
commit 60ce8a8ac5

View file

@ -188,7 +188,7 @@ hostname_selector () {
# User chooses the locale (function). # User chooses the locale (function).
locale_selector () { locale_selector () {
read -r -p "Please insert the locale you use (format: xx_XX. Enter empty to use en_US, or \"/\" to search locales): " locale read -r -p "Please insert the locale you use (format: xx_XX. Enter empty to use en_US, or \"/\" to search locales): " locale
case "$locale" in case $locale in
'') locale="en_US.UTF-8" '') locale="en_US.UTF-8"
print "$locale will be the default locale." print "$locale will be the default locale."
return 0;; return 0;;
@ -206,7 +206,7 @@ locale_selector () {
# User chooses the console keyboard layout (function). # User chooses the console keyboard layout (function).
keyboard_selector () { keyboard_selector () {
read -r -p "Please insert the keyboard layout to use in console (enter empty to use US, or \"/\" to look up for keyboard layouts): " kblayout read -r -p "Please insert the keyboard layout to use in console (enter empty to use US, or \"/\" to look up for keyboard layouts): " kblayout
case "$kblayout" in case $kblayout in
'') kblayout="us" '') kblayout="us"
print "The standard US will be used as the default console keymap." print "The standard US will be used as the default console keymap."
return 0;; return 0;;
@ -327,7 +327,7 @@ mount "$ESP" /mnt/boot/
# 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 "$kernel" "$microcode" "$kernel"-headers base linux-firmware btrfs-progs grub grub-btrfs rsync efibootmgr snapper reflector base-devel snap-pac zram-generator &>/dev/null pacstrap /mnt --needed base "$kernel" "$microcode" "$kernel"-headers linux-firmware btrfs-progs grub grub-btrfs rsync efibootmgr snapper reflector base-devel snap-pac zram-generator &>/dev/null
# Setting up the hostname. # Setting up the hostname.
echo "$hostname" > /mnt/etc/hostname echo "$hostname" > /mnt/etc/hostname