# Install a minimal base system, generate fstab, copy this repo into the new root.
# Sourced by run.sh. The FULL package set is installed later by 02-system/run.sh.

pacstrap -K /mnt \
  base linux linux-firmware intel-ucode amd-ucode \
  mkinitcpio networkmanager sudo git base-devel vim efibootmgr terminus-font

genfstab -U /mnt >> /mnt/etc/fstab

# carry the repo into the installed system so provisioning can run after reboot
mkdir -p /mnt/root
cp -a "$REPO_ROOT" /mnt/root/arch-system-hyprland
