Fixed up a few things in provisioning
This commit is contained in:
parent
c7f9b93677
commit
dd791b4809
1 changed files with 4 additions and 4 deletions
|
@ -28,13 +28,13 @@ Then to create the filesystem on the efi partition.
|
|||
# mkfs.fat -F 32 -n efi /dev/<disk1>
|
||||
```
|
||||
|
||||
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/<disk2> 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<n> /dev/mapper/luks
|
||||
|
@ -55,7 +55,7 @@ Then create partitions inside the volume group:
|
|||
```
|
||||
# lvcreate --name alp_root -L 16G vg<n>
|
||||
# lvcreate --name alp_var -L 8G vg<n>
|
||||
# lvcreate --name alp_tmp -L 16G vg<n>
|
||||
# lvcreate --name alp_tmp -L 8G vg<n>
|
||||
# lvcreate --name alp_nix -L 32G vg<n>
|
||||
# lvcreate --name alp_home -l 100%FREE vg<n>
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue