From 838eedcdd9e7fcedbc2ef170b5ba602c1ca7cf1e Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 24 May 2023 16:28:21 +0200 Subject: [PATCH] README: Prefer UEFI in installation instructions --- README.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index eb0e13d..5721e9f 100644 --- a/README.md +++ b/README.md @@ -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