Skip to content

Instantly share code, notes, and snippets.

@epyonavenger
Last active May 7, 2019 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epyonavenger/6ce5996a83aac51fc48ca76071e9318e to your computer and use it in GitHub Desktop.
Save epyonavenger/6ce5996a83aac51fc48ca76071e9318e to your computer and use it in GitHub Desktop.

Arch Linux EFI Install Guide

  • Boot from ISO

  • gdisk /dev/sda

    • (n)
    • (enter)
    • (enter)
    • (+512M)
    • EF00
    • (n)
    • (enter)
    • (enter)
    • (enter)
    • (enter)
    • (w)
    • (y)
  • mkfs.vfat /dev/sda1

  • mkfs.ext4 /dev/sda2

  • mount /dev/sda2 /mnt

  • mkidr /mnt/boot

  • mount /dev/sda1 /mnt/boot

  • pacstrap /mnt base

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

  • arch-chroot /mnt

  • echo (your_hostname_here) > /etc/hostname

  • ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime

  • (your_favorite_editor_here) /etc/locale.gen

  • (uncomment at least en_US.UTF-8, and any others you want)

  • locale-gen

  • echo LANG=en_US.UTF-8 > /etc/locale.conf

  • echo KEYMAP=us > /etc/vconsole.conf

  • mkinitpcio -p linux

  • passwd (change root password)

  • pacman -Sy base-devel sudo

    • (enter)
    • (enter)
    • (enter)
    • (enter)
    • (enter)
    • (enter)
    • (y)
  • bootctl install

  • cp /usr/share/systemd/bootctl/arch.conf /boot/loader/entries

  • (your_favorite_editor_here) /boot/loader/entries/arch.conf

    • (change root=PARTUUID=XXXX to your root partition UUID, replace add_efi_memmap with the following: rootfstype=ext4 add_efi_memmap rw quiet splash)
  • (your_favorite_editor_here) /boot/loader/loader.conf

    • (populate with the following...)
      • default arch
      • timeout 3
      • editor no
      • auto-entries 1
      • auto-firmware 1
      • console-mode keep
  • bootctl status

    • (check that it looks good)
  • groupadd -r sudo

  • sed -i 's/# %sudo/%sudo/' /etc/sudoers

  • useradd -m -G sudo (username_here)

  • passwd (username_here)

  • exit

  • umount /dev/sda1

  • umount /dev/sda2

  • reboot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment