From 2abb5ec721e340f5bab9847130782d145d748592 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Mon, 9 Sep 2024 11:44:05 +0200 Subject: [PATCH] fix some mistakes in luks2 --- docs/luks2.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/luks2.md b/docs/luks2.md index a1f8102..6cf4c1d 100644 --- a/docs/luks2.md +++ b/docs/luks2.md @@ -34,14 +34,17 @@ mkfs.ext4 /dev/vg/home mkswap /dev/vg/swap ``` and finally mount them. EFI should be mounted to `/mnt/efi` - +If you have not yet created a filesystem on your efi partition, do so now: +```sh +mkfs.fat -F32 /dev/sda1 +``` ```sh mount /dev/vg/root /mnt mount --mkdir /dev/vg/home /mnt/home swapon /dev/vg/swap -mount --mkdir /dev/sda2 /mnt/efi +mount --mkdir /dev/sda1 /mnt/efi ``` ## Continue with your normal Arch install: @@ -98,7 +101,7 @@ and adjust two things in the file: ```/etc/default/grub GRUB_ENABLE_CRYPTODISK=y ``` -and add to `GRUB_CMDLINE_LINUX`: (can have multiple, space-separated arguments so don't delete anything if it's there, just add.) +and add to `GRUB_CMDLINE_LINUX_DEFAULT`: (can have multiple, space-separated arguments so don't delete anything if it's there, just add.) ```/etc/default/grub GRUB_CMDLINE_LINUX="cryptdevice=UUID=device-UUID:cryptlvm" ```