You are not logged in.
Hi,
Back to arch with a new install. This time I decided to add LVM and encryption, and behold, new problems arise.
Ok, let's see what we have to work with;
When booting I get the following message:
[ TIME ] Timed out waiting for device /dev/mapper/ArchVolume-root.
[DEPEND] Dependency failed for Initrd root device
[DEPEND] Dependency failed for /sysroot
[DEPEND] Dependency failed for Initrd Root File System
[DEPEND] Dependency failed for File System Check on /dev/mapper/ArchVolume-root
I have tried to follow the wiki per usual, but @ one step I can't figure out where to configure a command.
LVM on LUKS wiki mentions
In order to unlock the encrypted root partition at boot, the following kernel parameter needs to be set by the boot loader:
cryptdevice=UUID=device-UUID:cryptlvm root=/dev/MyVolGroup/root
I tried to enter this into the GRUB menu when pressing "e" with no luck.
Further on, I found this thread which mentions an /boot/loader/entries/arch.conf file, which I don't understand how to generate.
Also, I tried using dracut
dracut --hostonly --no-hostonly-cmdline /boot/initramfs-linux-hardened.img
But I got error message
dracut: Cannot find module directory /lib/modules/6.4.7-arch1-1
Any help is greatly appreciated.
Last edited by hay (2023-08-25 22:12:14)
Offline
What was the *exact* value for device-UUID that you used in the 'cryptdevice' line you quoted?
Offline
What was the *exact* value for device-UUID that you used in the 'cryptdevice' line you quoted?
Just to be clear i added the following line to then end of the
setparams 'Arch Linux
file, which opens when pressing "e" on the grub menu.
From blkid i get:
/dev/nvme0n1p5 UUID="8eba1b7d-7850-4ee6-87e8-2d827b70e5fc" TYPE="crypto_LUKS" PARTUUID="133e260d-df64-473f-a770-0a787df16419"
Among my attempts I've tried
cryptdevice=UUID=8eba1b7d-7850-4ee6-87e8-2d827b70e5fc:cryptlvm root=/dev/mapper/ArchVolume-root/root
cryptdevice=UUID="8eba1b7d-7850-4ee6-87e8-2d827b70e5fc":cryptlvm root=/dev/mapper/ArchVolume-root/root
Update, due to my hooks
HOOKS=(base systemd autodetect modconf kms keyboard sd-vconsole block sd-encrypt lvm2 filesystems fsck)
I have also tried these,
rd.luks.name=8eba1b7d-7850-4ee6-87e8-2d827b70e5fc=cryptlvm root=/dev/ArchVolume/root
rd.luks.name=8eba1b7d-7850-4ee6-87e8-2d827b70e5fc=cryptlvm root=/dev/ArchVolume
By the way, I have to manually enter these lines each attempt so there is a chance that I might have typed wrong. Shouldn't they be put in a config file and persist?
I guess it is wrong to trype with /dev/mapper/ since that does not get opened before entering the passphrase?
Offline
No longer need help, installed without encryption and everything went good. Thanks to everyone who contributed to the wiki.
Offline
Please remember to mark your thread [SOLVED] (edit the title of your first post).
Offline