Bugzilla – Full Text Bug Listing |
Summary: | System won't boot -- hibernate/resume/crypto issue | ||
---|---|---|---|
Product: | [openSUSE] openSUSE Distribution | Reporter: | Neil Rickert <nwr10cst-oslnx> |
Component: | Basesystem | Assignee: | YaST Team <yast-internal> |
Status: | NEW --- | QA Contact: | E-mail List <qa-bugs> |
Severity: | Normal | ||
Priority: | P5 - None | CC: | antonio.feijoo, dracut-maintainers, martin.sirringhaus, mchang, sebix+novell.com |
Version: | Leap 15.4 | ||
Target Milestone: | --- | ||
Hardware: | x86-64 | ||
OS: | openSUSE Leap 15.4 | ||
Whiteboard: | |||
Found By: | --- | Services Priority: | |
Business Priority: | Blocker: | --- | |
Marketing QA Status: | --- | IT Deployment: | --- |
Attachments: | Yast logs from an install of Build208.2 (Leap 15.4 Beta) |
Description
Neil Rickert
2022-04-05 13:39:16 UTC
I just tried a test install of Tumbleweed 20220404 I set it up the same way (with randomly encrypted swap). Tumbleweed boots up fine this way. So the problem may be limited to Leap 15.4 Hi Antonio and Thomas Does it ring any bell to you guys ? Thanks. Now the initrd handles the resume kernel argument in more cases. In your system the boot process hangs until the device specified with the resume parameter is available. Does crypttab contain an entry to decrypt cr_swap at boot time? I you don't want to use suspension/hibernation, you should remove the resume argument from the grub entry (/etc/default/grub : GRUB_CMDLINE_LINUX_DEFAULT) and regenerate the grub config file. Responding to Antonio (at c#3 ): I included the content of "/etc/crypttab" in my initial report on this. It is only one line, so perhaps you skipped past it. On the question of GRUB_CMDLINE_LINUX_DEFAULT (in "/etc/default/grub") -- yes, I have already changed that on my system. And if that were the only issue, then a comment in release-notes would be sufficient. The problem, however, is that the installer sets it up that way. So it is already broken as installed. I did a clean install into a VM to test this. (In reply to Neil Rickert from comment #4) > Responding to Antonio (at c#3 ): > > I included the content of "/etc/crypttab" in my initial report on this. It > is only one line, so perhaps you skipped past it. Yes, sorry. Did you regenerate the initrd after changing the crypttab file (dracut -f)? What's the output of: # lsinitrd -f etc/crypttab > Did you regenerate the initrd after changing the crypttab file (dracut -f)? I did not change "crypttab". It is still the same as at install. > What's the output of: > # lsinitrd -f etc/crypttab I just get empty output. It seems that "crypttab" is not in the initrd. I guess that's the problem. Regenerating the "initrd" with "mkinitrd" does not change that. I have the same issue since Thursday with tw. It happens with both 5.16.15-1 and 5.17.1-1. I can't say what exactly (which package update) changed on that day/the day before. initrd's crypttab does not contain the encrypted swap, although /etc/crypttab does and mkinitrd does not bring it there. Hi Antonio, As long as it looks like being dracut related issue thus far, I reassign to you and hope you are ok with that. Thanks. (In reply to Michael Chang from comment #8) > Hi Antonio, > > As long as it looks like being dracut related issue thus far, I reassign to > you and hope you are ok with that. Thanks. Thanks Michael, I forgot to take it. (In reply to Neil Rickert from comment #6) > > Did you regenerate the initrd after changing the crypttab file (dracut -f)? > > I did not change "crypttab". It is still the same as at install. > > > What's the output of: > > > # lsinitrd -f etc/crypttab > > I just get empty output. It seems that "crypttab" is not in the initrd. I > guess that's the problem. Regenerating the "initrd" with "mkinitrd" does > not change that. I missed one thing: the system cannot hibernate/suspend using a swap partition encrypted with a volatile random key. So, dracut is not failing because the initrd should not contain its crypttab entry. But, the installer should not add a resume= parameter to the grub command line in this case. I cannot reproduce it with Leap 15.4 Build208.2, so I must assume that the installer issue is already fixed. (In reply to Neil Rickert from comment #1) > I just tried a test install of Tumbleweed 20220404 > > I set it up the same way (with randomly encrypted swap). > > Tumbleweed boots up fine this way. So the problem may be limited to Leap > 15.4 Indeed. I cannot reproduce it with TW. Thanks to this bug report we found a couple of issues related to the inclusion of the dracut resume module: - The resume module is being added even if there is not any suitable swap. - The sanity check of the resume module can be improved by verifying if the kernel command line contains a resume= argument pointing to a volatile swap. TW PR: https://github.com/openSUSE/dracut/pull/171 Created attachment 858046 [details] Yast logs from an install of Build208.2 (Leap 15.4 Beta) >I cannot reproduce >it with Leap 15.4 Build208.2, so I must assume that the installer issue is >already fixed. No, the installer is not fixed. I did test this with Build208.2. I just did another test, again with Build208.2. And again, the problem occurred. My install took the defaults for booting, and these included the "resume=" parameter. I am attaching the Yast logs for this install. (In reply to Neil Rickert from comment #10) > Created attachment 858046 [details] > Yast logs from an install of Build208.2 (Leap 15.4 Beta) > > >I cannot reproduce > >it with Leap 15.4 Build208.2, so I must assume that the installer issue is > >already fixed. > > No, the installer is not fixed. I did test this with Build208.2. > > I just did another test, again with Build208.2. And again, the problem > occurred. My install took the defaults for booting, and these included the > "resume=" parameter. I am attaching the Yast logs for this install. I can't find any reference to resume=/dev/mapper/cr_swap on the kernel command line by searching the YaST logs... Anyway, there is no dracut issue here, I'll pass this bug to the YaST team so they can verify if the installer part is solved and close it. |