LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-07-2020, 01:37 PM   #1
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Dracut hangs on cryptsetup luksOpen / Udev cookie waiting for zero


My void linux laptop with fully encrypted disk hangs at boot.
After about 3 minutes I get dropped into the dracut debug shell.
I tried to mount the LUKS encrypted rootfs manually and found that it hangs there.
(When I boot the laptop from a live system I can mount the cryptdisko without problems, so I think the problem must be in the initrd.)

I tried to run the cryptsetup command with the --debug flag and it got stuck saying it was waiting for a udev cookie being decremented to zero. (See first screenshot)


I searched this problem on the web and found various sources that pointed at missing udev rules.
A post in a gentoo forum specifically listed the following rules:
Code:
/lib/udev/rules.d/10-dm.rules
/lib/udev/rules.d/11-dm-lvm.rules
/lib/udev/rules.d/13-dm-disk.rules
/lib/udev/rules.d/95-dm-notify.rules
So I checked the initrd for the presence of these rules and found that they are present albeit under a different directory. (See second screenshot)

I compared this to an older initrd lying around that I know worked before. (I no longer have the kernel image so unfortunately I can't boot from it).
The udev rules are also located under the /usr/lib structure there and the /lib/udev structure is absent.
So I would be inclined to say the rules are present.

I am running out of ideas on how to diagnose this further. If you have an idea please let me know! Also do let me know if I need to supply more information.

EDIT: I forgot to mention that I did a system update today. I think (but I am not 100% sure) that the problem occurred right at the first boot after the update.

EDIT2: I can boot again! I downgraded dracut from package version 050_7 to 050_2. This makes me think the problem is with a change in the packaging instructions. I will investigate further and report back
Attached Thumbnails
Click image for larger version

Name:	20200807_192647.jpg
Views:	51
Size:	255.4 KB
ID:	33803   Click image for larger version

Name:	20200807_201216.jpg
Views:	59
Size:	246.3 KB
ID:	33804  

Last edited by joe_2000; 08-07-2020 at 02:07 PM. Reason: Added info on system update. Added info on dracut downgrade
 
Old 08-07-2020, 02:11 PM   #2
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Original Poster
Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
I just saw that the change that broke this for me was reverted in the meantime. Another update did not reintroduce the problem.
 
  


Reply

Tags
cryptsetup, dracut, initramfs, udev



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
getting this message trying to install CentOS 8: [ 12.8027081] dracut-pre-udev[439]: modprobe: FATAL: Module floppy not found .... cdsuarez1975 Linux - Newbie 3 04-26-2020 08:56 PM
[SOLVED] Problem accessing encrypted drive with luksOpen Alinda Ubuntu 1 08-24-2019 05:56 PM
LXer: InitRAMFS, Dracut, and the Dracut Emergency Shell LXer Syndicated Linux News 0 04-08-2019 09:33 AM
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 when trying x11 forwarding Sean1988 Linux - Newbie 2 05-12-2014 05:35 AM
My browser, all day today: 'waiting for linuxquestions.org...' ..waiting.. waiting .. GrapefruiTgirl LQ Suggestions & Feedback 18 05-25-2007 05:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration