From dd791b4809fca4916ae7f72d0cf2b6d604451513 Mon Sep 17 00:00:00 2001 From: Tastatur Date: Thu, 4 Jan 2024 12:42:48 +0100 Subject: [PATCH] Fixed up a few things in provisioning --- docs/alpine-desktop-setup/provisioning.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/alpine-desktop-setup/provisioning.md b/docs/alpine-desktop-setup/provisioning.md index 12a057f..c5f7905 100644 --- a/docs/alpine-desktop-setup/provisioning.md +++ b/docs/alpine-desktop-setup/provisioning.md @@ -28,13 +28,13 @@ Then to create the filesystem on the efi partition. # mkfs.fat -F 32 -n efi /dev/ ``` -The root partition of the system is going to be encrypted using `cryptsetup`. First generate a key that will be used to encrypt the device and safe it temporarily to the file `/tmp/crypt-key.txt` with: +The root partition of the system is going to be encrypted using `cryptsetup`. First generate a key that will be used to encrypt the device and save it temporarily to the file `/tmp/crypt-key.txt` with: ``` # cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 > /tmp/crypt-key.txt && cat /tmp/crypt-key.txt ``` -Later on in the guide `clevis` will be used for automatic decryption so this key only has to be entered a only few times. However, if any changes are made to the bios or secureboot then this key will be needed again so make sure to write it down. +Later on in the guide `clevis` will be used for automatic decryption so this key only has to be entered a few times. However, if any changes are made to the bios or secureboot then this key will be needed again so make sure to write it down. Then format the partition using `cryptsetup`: @@ -44,7 +44,7 @@ Then format the partition using `cryptsetup`: # cryptsetup open --type luks /dev/ luks ``` -Now to create a new LVM volume group choose $n \in \mathbb{N}$ accordingly: +Now to create a new LVM volume group, choose $n \in \mathbb{N}$ accordingly: ``` # vgcreate vg /dev/mapper/luks @@ -55,7 +55,7 @@ Then create partitions inside the volume group: ``` # lvcreate --name alp_root -L 16G vg # lvcreate --name alp_var -L 8G vg -# lvcreate --name alp_tmp -L 16G vg +# lvcreate --name alp_tmp -L 8G vg # lvcreate --name alp_nix -L 32G vg # lvcreate --name alp_home -l 100%FREE vg ```