Skip to content

Instantly share code, notes, and snippets.

@xcodian
Created May 25, 2020 12:40
Show Gist options
  • Save xcodian/4e4a3945f13abecf461c5598e65cba93 to your computer and use it in GitHub Desktop.
Save xcodian/4e4a3945f13abecf461c5598e65cba93 to your computer and use it in GitHub Desktop.
mkfs.fat -F32 /dev/sda1
mkfs.ext4 /dev/sda2
mkswap /dev/sda3
swapon /dev/sda3
mount /dev/sda2 /mnt
pacstrap base linux /mnt
mkdir /mnt/boot/efi
mount /dev/sda1 /mnt/boot/efi
genfstab -U > /mnt/etc/fstab
arch-chroot /mnt
pacman -S grub
grub-install ––esp=/boot/efi
grub-mkconfig -O /boot/grub/grub.cfg
exit
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment