commit 7875fe2f3175aa3e971ecaec86d196d38b1aadda
parent 9d024f89052ef1e1b38fd5f96388c17a57d7b7f9
Author: Julian Piribauer <julian.piribauer@gmail.com>
Date: Thu, 19 Feb 2026 21:28:04 +0100
Minor changes
Diffstat:
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/arch_install.md b/arch_install.md
@@ -24,13 +24,13 @@ Using parted, the commands are
# parted /dev/sda
```
-```cpp
+```bash
(parted) select /dev/sdX
(parted) mklabel msdos
(parted) mkpart primary ext2 1MB 512MB
(parted) mkpart primary ext4 512MB 100%
(parted) set 1 boot on
-quit
+(parted) quit
```
Then, we encrypt the second partition and give it the name "crypt":
@@ -94,17 +94,17 @@ We link our timezone and set the clock:
# hwclock --systohc
```
-Inside /etc/locale.gen, uncomment the regional settings you prefer, e.g. de_CH.UTF-8.
+Inside `/etc/locale.gen`, uncomment the regional settings you prefer, e.g. `de_CH.UTF-8`.
After saving, execute
```console
# locale-gen
```
-In /etc.locale.conf, set LANG to your prefered language, e.g. LANG=en_US.UTF-8.
-Then, write your prefered host name into /etc/hostname.
+In `/etc.locale.conf`, set `LANG` to your prefered language, e.g. `LANG=en_US.UTF-8`.
+Then, write your prefered host name into `/etc/hostname`.
-Now comes a crucial part: inside the file /etc/mkinitcpio.conf, make sure the line defining the hooks is of the form (ordering matters!)
+Now comes a crucial part: inside the file `/etc/mkinitcpio.conf`, make sure the line defining the hooks is of the form (ordering matters!)
```cpp
Hooks=(base udev autodetect keyboard keymap consolefont modconf block lvm2 encrypt filesystem fsck)
@@ -116,14 +116,15 @@ Install grub with
# grub-install /dev/sda
```
-and open /etc/default/grub.
-Inside, ensure that the argument of GRUB_CMDLINE_LINUX is defined as
+Next, we need to tell grub which partition to decrypt and use as root.
+For this, you can use the command `lsblk -f >> /etc/default/grub`, pasting a list of devices into the grub config file.
+Inside `/etc/default/grub`, ensure that the argument of `GRUB_CMDLINE_LINUX` is defined as
```cpp
GRUB_CMDLINE_LINUX="cryptdevice=UUID=yourUUID:x root=/dev/mapper/vg-root"
```
-where yourUUID is the device that is is opened, i.e., here, /dev/sda2.
+where yourUUID is the *UUID* of the device that shall be decrypted, i.e., here, `/dev/sda2`.
Also, uncomment the line
```cpp