# Mount disks
lsblk
cryptsetup open /dev/sda2 cryptlvm
mount /dev/mapper/cryptlvm /mnt
mount /dev/sda1 /mnt/boot
# Connect to internet
iwctl
device list
device <YOUR_DEVICE> set-property Powered on
adapter <YOUR_ADAPTER> set-property Powered on
station <YOUR_DEVICE> scan
station <YOUR_DEVICE> get-networks
station <YOUR_DEVICE> connect <YOUR_SSID>exit
rm /mnt/var/lib/pacman/db.lck # removes pacman lock
pacstrap -M -G -i -C /mnt/etc/pacman.conf /mnt base linux linux-zen linux-lts linux-firmware nvidia-dkms # omit nvidia if necessary
sudo shutdown -r now
# ============================================# Once rebooted into hopefully workable system
cat /var/lib/pacman.log # Look at what caused failure, re-install all packages that were part of that transaction
pacman -Qk 2>/dev/null | grep -v ' 0 missing files'# get packages with missing files
yay -S <all packages from above 2 commands>