Skip to content

Instantly share code, notes, and snippets.

@corburn
Last active December 5, 2017 17:02
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 corburn/b7c02d01d5756dcb6fffb87481b4e51f to your computer and use it in GitHub Desktop.
Save corburn/b7c02d01d5756dcb6fffb87481b4e51f to your computer and use it in GitHub Desktop.
Installing Arch Linux with an encrypted btrfs root, GPT, and UEFI
#!/bin/bash
# UEFI Shell
mount fs01 usb
usb:
shell.x64.efi
# LUKS
dd if=/dev/urandom of=/dev/nvme0n1
# cgdisk /dev/nvme0n1
#
# size: 512M
# type: EF00 (EFI Partition)
# name: esp (EFI System Partition)
#
# size: (remaining disk)
# type: 8300 (linux)
# name: root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment