Re: Dracut fails to boot root-fs
Michael <[email protected]> Sat, 11 Apr 2026 12:49:21 +0100
| Newsgroups | gmane.linux.gentoo.user |
|---|---|
| Message-ID | <5986410.DvuYhMxLoT@rogueboard> |
On Saturday, 11 April 2026 00:49:56 British Summer Time Carsten Hauck wrote: > Dear list, > Gentoo has been my distribution of choice for more than 20 years, I > borked my systems more than once but always found a solution > eventually. Not so now. > Some time ago I aquired a refurbished Gen. 3 HP ZBook as a replacement > for my Very Old Laptop. I installed Gentoo following the handbook and > the relevant wikipages covering LVM and encryption of the root > filesystem. It failed to boot. As I couldn't figure out what I had > done wrong I installed Devuan to be sure not to have a hardware > issue. That booted perfectly fine. So I did a complete reinstall on > the partitions left over from Devuan. An efi-partition, a > boot-partition and a big LUKS-encryptet partition with a swap and a > root vg. > Again, I could not boot the root fs. > After meddling for a while without success I figured, that I am just > too dumb for LVM and that my thread model allows for unencryptet > swap. Again I did a complete reinstall after repartitioning, this > time without using LVM. The problem persists. > > The installation went smoothly and the chroot works as expected. I use > GRUB as bootmanager and sys-kernel/gentoo-kernel-bin to rule out > configuration issues. GRUB loads the kernel without problem and I am > prompted for the luksOpen passphrase. After entering the correct > passphrase nothing happens for several minutes until I am dropped > into a dracut rescue shell. > It states: > dracut Warning: Could not boot. > dracut Warning: /dev/disk/by-uuid/73afXXX does not exist Did you install 'sys-fs/cryptsetup' before creating the initramfs with dracut? What modules have you added in /etc/dracut.conf? > I can mount and access the root filesystem (/dev/mapper/cryptroot) > without problem but even after mounting it on /sysroot and exiting the > shell it fails to boot and drops me right back into the shell. > > dracut:/# blkid > /dev/nvme0n1p3: UUID="66b9XXX" TYPE="swap" PARTUUID="7f17XXX" > /dev/nvme0n1p1: UUID="C900XXX" BLOCK_SIZE="512" TYPE="vfat" > PARTUUID="9f76XXX" > /dev/nvme0n1p4: UUID="332dXXX" TYPE="crypto_LUKS" PARTUUID="52a0XXX" > /dev/nvme0n1p2: LABEL:"boot" UUID="aef0XXX" BLOCK_SIZE="4096" > TYPE="ext2" PARTUUID="c457XXX" > /dev/mapper/cryptroot: LABEL="root" UUID"73afXXX" BLOCK_SIZE="512" > TYPE="xfs" > > dracut:/# cat /proc/cmdline > BOOT_IMAGE=/vmlinuz-6.18.18-gentoo-dist root=UUID=73afXXX ro > rd.lang=de rd.vconsole.keymap=de-latin1 > rd.luks.name=332dXXX=cryptroot > > I tried to modifie the GRUB commandline to access the root filesystem > by LABEL or by /dev/mapper/cryptroot with the same effect. > Everything seems to work: GRUB, the initramfs, cryptsetup... so I > don't have an idea what's going wrong. Only thing is, there is no > entry for /dev/mapper/crypt I think you meant to write: "/dev/mapper/cryptroot" > in /dev/disk/by-uuid and in > /dev/disk/by-label. > > Anyone pointing me to the Obvious and Stupid mistake I'm making (or > giving me other meaningfull advice) would be greatly appreciated. > > Kind regards > > Carsten
signature.asc
(application/pgp-signature, 870 B)
-----BEGIN PGP SIGNATURE----- iQJPBAABCAA5FiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmnaNUEbFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMiwyAAoJELHqqvbClWcZWSQQAKuIVuJ9gk5AHjyx+vxB miYoYGyKQFwRo1q0v5a6Nf7OH8eUQZPvSvcjI8LJzth+DSrGwDF+GyQKRuEBltjb 2z7nhkPhMZTwb0U07onVSK+DE6k5RASAEkS6rhUm5lfqEr0IEP476Q4X54wUzN53 qRNK1e4lS+BeaNxq3295Tv1as0pSKIrOeAwGZbcNumyK3kiUFavu8Dyv/rnhSLZ/ 3BB2T3Oo2Md6Yd8bFAgdoCQ+6ZbVQYmJCwpXMC7bZZxNr+Ydx+OVcQK8YmwONhJS eml5/KcWa/q5i97Ll/xlK+kXamVlHtqrJTyrCeGIlfDghV7fJgLPr3F4zqmt8hjg iZm5xiUtBdYMVWwwYectkmmgM8Nww0a3aCK3KLf0ZAzA67J0AT0RM8RvpShSBpLa G9Z7+5tIy8ywJcf9vgO5kIdlMOjHvV9qfqwSjnJy5OZBvuHbe1Nw02yWYSwWz8GD r3VBw0GJl38lnEnQrfAG8yn/HZ4O0kxf2V3RTtTA2v6zpgPnqy7LfF67GZYOJ7vv o3OP00NYIyPFKVX1xEPejSgqPSyF8zeJwcklllzw4Lke+WbMoQt9YXj3D24XArtd ZdMlvpXw4qJCY+v4JYIZWfaEB01Zpjmb7ktmz0DWRWlZS4J7L1mettnT/UvTdwBc wcBXIY7IVCm6ue6Nq3Yg3F8+ =qaFM -----END PGP SIGNATURE-----