README: Prefer UEFI in installation instructions

This commit is contained in:
Simon Bruder 2023-05-24 16:28:21 +02:00
parent dc0a64a44e
commit 838eedcdd9
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -45,6 +45,15 @@ Set up wifi if no wired connection is available:
Create the partition table (enter the indented lines in the repl):
parted /dev/nvmeXnY
mktable GPT
mkpart ESP 1MiB 512MiB
mkpart root 512MiB 100%
set 1 esp on
quit
On MBR:
parted /dev/sdX
mktable GPT
mkpart primary 1MiB 2MiB
@ -54,19 +63,10 @@ Create the partition table (enter the indented lines in the repl):
disk_toggle pmbr_boot
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:
cryptsetup luksFormat --type luks2 /dev/sdX3
cryptsetup open --type luks2 /dev/sdX3 HOSTNAME-pv
cryptsetup luksFormat --type luks2 /dev/nvmeXnYp2
cryptsetup open --type luks2 /dev/nvmeXnYp2 HOSTNAME-pv
Create LVM (replace `8G` with desired swap size):
@ -81,13 +81,13 @@ the following after opening the luks partition: `vgchange -ay`.
Create filesystems:
mkfs.ext2 /dev/sdX2
mkfs.fat -F 32 -n boot /dev/nvmeXnYpZ
mkfs.btrfs -L root /dev/HOSTNAME-vg/root
mkswap -L swap /dev/HOSTNAME-vg/swap
On UEFI:
On MBR:
mkfs.fat -F 32 -n boot /dev/nvmeXnYpZ
mkfs.ext2 /dev/sdX2
mkfs.btrfs -L root /dev/HOSTNAME-vg/root
mkswap -L swap /dev/HOSTNAME-vg/swap
@ -95,7 +95,7 @@ Mount the file systems and activate swap:
mount /dev/HOSTNAME-vg/root /mnt
mkdir /mnt/boot
mount /dev/sdX2 /mnt/boot
mount /dev/nvmeXnYp1 /mnt/boot
swapon /dev/HOSTNAME-vg/swap
Generate hardware configuration and copy hardware configuration to machine