README: Add UEFI installation instructions

This commit is contained in:
Simon Bruder 2021-10-05 19:16:39 +02:00
parent 8bf63db6e5
commit 00ac4f251c
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -48,6 +48,15 @@ Create the partition table (enter the indented lines in the repl):
disk_toggle pmbr_boot disk_toggle pmbr_boot
quit quit
On UEFI:
parted /dev/nvmeXnY
mktable GPT
mkpart ESP 1MiB 512MiB
mkpart root 512MiB 100%
set 1 esp on
quit
Format encrypted partition and open it: Format encrypted partition and open it:
cryptsetup luksFormat --type luks2 /dev/sdX3 cryptsetup luksFormat --type luks2 /dev/sdX3
@ -70,6 +79,12 @@ Create filesystems:
mkfs.btrfs -L root /dev/HOSTNAME-vg/root mkfs.btrfs -L root /dev/HOSTNAME-vg/root
mkswap -L swap /dev/HOSTNAME-vg/swap mkswap -L swap /dev/HOSTNAME-vg/swap
On UEFI:
mkfs.fat -F 32 -n boot /dev/nvmeXnYpZ
mkfs.btrfs -L root /dev/HOSTNAME-vg/root
mkswap -L swap /dev/HOSTNAME-vg/swap
Mount the file systems and activate swap: Mount the file systems and activate swap:
mount /dev/HOSTNAME-vg/root /mnt mount /dev/HOSTNAME-vg/root /mnt