Run microcode_detector before initial pacstrap

Initial pacstrap uses $microcode var, but var wasn't being initialized until after being called
This commit is contained in:
St. Jiub 2022-10-06 12:27:15 -07:00 committed by GitHub
parent cc089a7b5d
commit 3c4d7aa53a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -351,6 +351,9 @@ 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 &>/dev/null
@ -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