See the note about /etc/mkinitcpio.conf https://wiki.archlinux.org/title/LVM#LV … o_not_work
]]>Otherwise I'd try with a non-NVMe drive, in case it might be some kind of NVMe fuckery. Others would be more knowledgeable when it comes to those.
You could probably also copy the command history from your installation onto another drive after you're done installing, so you could paste it here and we might be able to see if something's being done wrong. I'm not sure where that command history is being kept though, archiso uses zsh as far as I know, and I don't know where it keeps its command history.
]]>No, I didn't add anything to /etc/grub.d, everything is default in a sense.
I tried some options but the very last time I followed this guy almost to the letter (I didn't install that many extra packages). He does as Wiki says as far as I can see, but with more details.
What doesn't make sense to me is that yours is using the old format (root=/dev/xxx) despite GRUB_DISABLE_LINUX_UUID=true not being set in your config. It should be using UUID. Do you have anything in /etc/grub.d that might be affecting things?
I did try some other guides other than Wiki and that helped to fix a few issues with UUID etc but I clearly don't see what I miss here and I'm at my wits' end.
What other guides? If those had you make unknown changes that aren't mentioned on the wiki then it's hard to know what your setup is like exactly. I would recommend against following any other guides unless you know what you're doing and know what everything does.
]]>I don't know why yours uses device name in the first root= parameter instead of UUID, I suspect it probably doesn't matter though because with lvm there should be no risk of that device name changing unexpectedly.
I'll have to play around in a VM later to see if I can replicate this, you're on an NVMe SSD though and that might make things different. I assume your drive is probably already set to AHCI mode at least, otherwise you wouldn't have been able to see the drive to install to it at all in the first place (judging by other threads on NVMe drives.)
I recommend you remove "loglevel=3 quiet", let it show absolutely everything. Then you might have a better chance of seeing exactly what's going wrong.
]]>benefit from using UUIDs instead of device names
How should it look in this case? Plus, as you mention there are two definitions of the root partition, I have no idea where the first one comes from as well and I'd rather not edit such configs manually.
Also, you're running unencrypted boot, so you don't need GRUB_ENABLE_CRYPTODISK=y,
I saw it being used in a few guides, that should not hurt as far as I understand but it didn't work without it as well.
At what point is it failing? It is grub that's failing, or initramfs?
I guess it's the latter judging by the message but I'm not that proficient at this part of Linux so you should guide me here.
I get this exact message after the GRUB stage.
ERROR: device '/dev/work/root' not found. Skipping fsck.
mount: /new_root: special device /dev/work/root does not exist.
And it throws me out to the emergency shell.
]]>linux /vmlinuz-linux root=/dev/mapper/work-root rw cryptdevice=UUID=5b3608d3-a73e-4a5f-8553-a514f99a5fc3:cryptlvm root=/dev/work/root loglevel=3 quiet splash
"/dev/mapper/work-root" and "/dev/work/root" should be equivalent, as far as I know, but is there a reason why "root" is being defined twice, as something different each time? I'm not sure where the first one comes from.
Edit: Hmm, that's probably not the issue. Mine has it twice as well, but it uses UUID-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx instead of device name. I'm not sure yet where that first declaration comes from but you might benefit from using UUIDs instead of device names?
Also, you're running unencrypted boot, so you don't need GRUB_ENABLE_CRYPTODISK=y, but I'm not sure if that might cause issues or not. At what point is it failing? It is grub that's failing, or initramfs?
]]>I decided to follow the Wiki and use LVM on LUKS for my work machine. Installation didn't cause any serious problems but I for some reason can't finish the boot process, it gets back to the emergency shell, no passphrase asked.
I did try some other guides other than Wiki and that helped to fix a few issues with UUID etc but I clearly don't see what I miss here and I'm at my wits' end.
I've tried some advices from similar topics, in particular, mounting the partition from the shell manually but it says that "device does not exist or access denied".
lsblk -f: https://termbin.com/a0se
fstab: https://termbin.com/fn8b
mkinitcpio.conf: https://termbin.com/lnk1
grub.cfg: https://termbin.com/6x60
default grub: https://termbin.com/n6ly
]]>