You are not logged in.
I've configured my system with LVM on a LUKS physical container:
/dev/sda1: boot
/dev/sda2: LUKS container
|---/dev/mapper/cryptolvm: lvm-vg container
|---/dev/lvm-vg/root
|---/dev/lvm-vg/home
|---/dev/lvm-vg/swap
Relevant part of /etc/mkinitcpio.conf:
HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt lvm2 filesystems fsck)
Relevant part of /etc/default/grub:
GRUB_PRELOAD_MODULES="part_gpt part_msdos lvm crypto"
GRUB_ENABLE_CRYPTODISK=y
GRUB_CMDLINE_LINUX="cryptdevice=UUID=</dev/sda2 volume UUID>:cryptolvm root=/dev/lvm-vg/root"
I run grub-mkconfig -o /boot/grub/grub.cfg in the arch-chrooted environment and it exits successfully, but on reboot I get:
Starting version 239
ERROR: device '/dev/lvm-vg/root' not found. Skipping fsck.
mount: /new_root: no filesystem type specified.
You are now being dropped into an emergency shell.
sh: can't access tty: job control turned off
I tried adding "luks" and "cryptodisk" to GRUB_PRELOAD_MODULES and manually reinstalling cryptsetup and lvm2, and that changed the system's behavior -- now I get:
Starting version 239
[60.933] INFO: rcu_preempt detected stalls on CPUs/tasks:
[60.933] o1-...!: (0 ticks this GP) idle=2a0/0/0 softirq=122/122 fqs=0 last_accelerate: e7d4/e7d8, nonlazy_posted: 3098, ..
[60.933] o(detected by 0, t=18002 jiffies, g=-234, c=-235, q=12784)
[60.934] rcu_preempt kthread starved for 18002 jiffies!
And so on. There are about ten lines and it just hangs after that.
I've read through the Arch wiki pages on dm-crypt, grub, mkinitcpio, and the general Installation page, and I'm not seeing what I'm doing wrong. I had Arch up on this machine until I had a hard drive crash a few months back so I know it will work, I'm just at a loss to get past this point. It looks like the relevant encryption modules aren't being loaded, maybe? Any help would be appreciated.
Last edited by project9501 (2018-09-17 19:34:35)
Offline
Issue was I didn't run mkinitcpio again after updating mkinitcpio.conf and /etc/default/grub. Working as expected now.
Offline