Merge pull request #56 from stjiub/main

Fixed pacstrap errors
This commit is contained in:
Tommaso Chiti 2022-10-08 09:28:40 +02:00 committed by GitHub
commit 26f4a994f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -351,9 +351,12 @@ 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/
# Checking the microcode to install.
microcode_detector
# Pacstrap (setting up a base sytem onto the new root). # Pacstrap (setting up a base sytem onto the new root).
info_print "Installing the base system (it may take a while)." info_print "Installing the base system (it may take a while)."
pacstrap /mnt base "$kernel" "$microcode" linux-firmware "$kernel"-headers btrfs-progs grub grub-btrfs rsync efibootmgr snapper reflector snap-pac zram-generator &>/dev/null pacstrap /mnt base "$kernel" "$microcode" linux-firmware "$kernel"-headers btrfs-progs grub grub-btrfs rsync efibootmgr snapper reflector snap-pac zram-generator sudo &>/dev/null
# Setting up the hostname. # Setting up the hostname.
echo "$hostname" > /mnt/etc/hostname echo "$hostname" > /mnt/etc/hostname
@ -375,9 +378,6 @@ cat > /mnt/etc/hosts <<EOF
127.0.1.1 $hostname.localdomain $hostname 127.0.1.1 $hostname.localdomain $hostname
EOF EOF
# Checking the microcode to install.
microcode_detector
# Virtualization check. # Virtualization check.
virt_check virt_check