dracutdevs / dracut

dracut the event driven initramfs infrastructure
https://github.com/dracutdevs/dracut/wiki
GNU General Public License v2.0
571 stars 396 forks source link

dracut failled to boot a crypt_luks with systemd-gpt-auto mount !!! #2659

Open user7z opened 5 days ago

user7z commented 5 days ago

Describe the bug dracut stuck at boot , it shows prompt k asking for password , entering the password and successfully decrypt the partition but failled to pass to systemd

Distribution used bouth Gentoo and archlinux

Dracut version the current version in archlinux and gentoo's current version

Init system systemd

To Reproduce just encrypt partition with luks and wait for systemd-gpt-auto to auto mount

Expected behavior i expect dracut to give the action to systemd so it mount the GPT discoverable partitions ,

Additional context in gentoo wiki and forumes they recommend set root=/dev/gpt-auto-root : Some tools may become confused if there is no root= parameter on the kernel command line at all. To placate such tools add root=/dev/gpt-auto-root to the kernel command line. This trick is also usefull if a swapfile on the root partition is used instead of a swap partition for hibernation, i.e. one may specify the resume target on the kernel command line as resume=/dev/gpt-auto-root resume_offset=xxxxxxxxx. but that doesnot work here is the report [Uploading rdsosreport.txt…]()

LaszloGombos commented 5 days ago

Arch wiki recommends

dracut --hostonly --no-hostonly-cmdline /boot/initramfs-linux.img

Can you please also try that ?

user7z commented 5 days ago

Arch wiki recommends

dracut --hostonly --no-hostonly-cmdline /boot/initramfs-linux.img

Can you please also try that ?

it did waht root=gpt-auto did , a few services loads and then sends a quick shutdown , the journal [Uploading jrnl.txt…]() but iam sorry the command you sent requires a bootloader i gues , i well retry iy with --uefi instead since that what iam using

the system boot , thank you i well do more testing and i share back , thank you again