README: Prefer UEFI in installation instructions
This commit is contained in:
parent
dc0a64a44e
commit
838eedcdd9
30
README.md
30
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):
|
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
|
parted /dev/sdX
|
||||||
mktable GPT
|
mktable GPT
|
||||||
mkpart primary 1MiB 2MiB
|
mkpart primary 1MiB 2MiB
|
||||||
|
@ -54,19 +63,10 @@ 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/nvmeXnYp2
|
||||||
cryptsetup open --type luks2 /dev/sdX3 HOSTNAME-pv
|
cryptsetup open --type luks2 /dev/nvmeXnYp2 HOSTNAME-pv
|
||||||
|
|
||||||
Create LVM (replace `8G` with desired swap size):
|
Create LVM (replace `8G` with desired swap size):
|
||||||
|
|
||||||
|
@ -81,13 +81,13 @@ the following after opening the luks partition: `vgchange -ay`.
|
||||||
|
|
||||||
Create filesystems:
|
Create filesystems:
|
||||||
|
|
||||||
mkfs.ext2 /dev/sdX2
|
mkfs.fat -F 32 -n boot /dev/nvmeXnYpZ
|
||||||
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:
|
On MBR:
|
||||||
|
|
||||||
mkfs.fat -F 32 -n boot /dev/nvmeXnYpZ
|
mkfs.ext2 /dev/sdX2
|
||||||
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
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ Mount the file systems and activate swap:
|
||||||
|
|
||||||
mount /dev/HOSTNAME-vg/root /mnt
|
mount /dev/HOSTNAME-vg/root /mnt
|
||||||
mkdir /mnt/boot
|
mkdir /mnt/boot
|
||||||
mount /dev/sdX2 /mnt/boot
|
mount /dev/nvmeXnYp1 /mnt/boot
|
||||||
swapon /dev/HOSTNAME-vg/swap
|
swapon /dev/HOSTNAME-vg/swap
|
||||||
|
|
||||||
Generate hardware configuration and copy hardware configuration to machine
|
Generate hardware configuration and copy hardware configuration to machine
|
||||||
|
|
Loading…
Reference in a new issue