Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dracut Fails to Mount Decrypted Rootfs Due to Mapper Naming/UUID Mismatch on Gentoo #2688

Open
Tymon8274 opened this issue Feb 21, 2025 · 0 comments
Labels
bug Our bugs

Comments

@Tymon8274
Copy link

Description: After unlocking a LUKS-encrypted root partition (/dev/sda1), Dracut fails to mount the root filesystem. It incorrectly references /dev/mapper/luks-d0e2cc38-... (UUID of the LUKS partition) instead of the decrypted filesystem's UUID (90abb01c-...).
Error 'dracut Warning: /dev/disk/by-uuid/d0e2cc38-8c50-4cfd-96f8-2a4eb01651af does not exist'
Distro: Gentoo Linux (Custom Kernel)
Dracut Version: 106
Init System: OpenRC
Steps to Reproduce

  1. Install Gentoo on x32 hardware (VIA KT400 chipset).
  2. Configure LUKS encryption for /dev/sda1.
  3. Generate initramfs with default settings.
  4. Boot with root=UUID=d0e2cc38-... (UUID of the LUKS partition).

Observed Behavior:

  1. Dracut decrypts the partition but creates /dev/mapper/luks-90abb01c-... (filesystem UUID).
  2. Fails to mount rootfs because it searches for /dev/disk/by-uuid/d0e2cc38-... (LUKS UUID).

Expected Behavior:
Dracut should either:
Mount the rootfs using the decrypted filesystem’s UUID (90abb01c-...), or
Name the mapper device as /dev/mapper/luks-d0e2cc38-... (LUKS UUID) to match root=UUID=....
Suspected Cause:
Dracut uses the LUKS partition’s UUID to name the mapper device or resolve root=UUID=..., but the decrypted filesystem has a different UUID. This creates a mismatch between the expected and actual device paths.

lsblk.txt
lspci -k.txt
rdsosreport.txt

@Tymon8274 Tymon8274 added the bug Our bugs label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Our bugs
Projects
None yet
Development

No branches or pull requests

1 participant