You are not logged in.
Hello everyone, i've been following the dm-crypt with secure boot and tpm2 setup guide on the wiki, and i'm unsure what i should be putting in my cmdline files for the initramfs
So far i've just tried setting the root device to equal the UUID of the encrypted drive (which obviously didn't work)
i made the /etc/kernel/cmdline file contain the following
cryptdevice=UUID=<UUID>:cryptroot root=/dev/mapper/root rw quiet
<UUID> being replaced with the actual partitions uuid
if anyone else has done this setup before, any help would be appreciated
Offline
the wiki should have all infos: https://wiki.archlinux.org/title/Dm-cry … ire_system
Offline
I have a laptop that's setup like that. Though I didn't use secure boot. It looks like you're using LVM on a LUKS encrypted drive. If I'm right that cryptroot should be cryptlvm. Like this:
cryptdevice=UUID=<UUID>:cryptlvm root=/dev/mapper/root rw quiet
If you're using an SSD, you might want to consider allowing discards. Then the line becomes:
cryptdevice=UUID=<UUID>:cryptlvm:allow-discards root=/dev/mapper/root rw quiet
At least that's what worked for me. That allow-discards only affects LUKS. You also need to add a issue_discards = 1 to /etc/lvm/lvm.conf to get it to work in LVM.
Some cause happiness wherever they go; others whenever they go.
- Oscar Wilde
Offline
Try
cryptdevice=UUID=<UUID>:cryptroot root=/dev/mapper/cryptroot rw quiet
The name after /dev/mapper should be the same as the name in the cryptdevice entry.
See https://wiki.archlinux.org/title/Dm-cry … parameters for details.
Offline