Bug 2028195
| Summary: | systemctl hibernate ignores the resume data | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jan Kratochvil <jan> | ||||||
| Component: | dracut | Assignee: | dracut-maint-list | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 35 | CC: | dracut-maint-list, dtardon, fedoraproject, filbranden, flepied, jamacku, jan, jonathan, lnykryn, msekleta, ryncsn, ssahani, s, systemd-maint, yuwatana, zbyszek | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2021-12-06 09:19:21 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Jan Kratochvil
2021-12-01 17:10:10 UTC
"resume=/dev/mapper/f35lvm-swap" is present, so it should work, strange. Please attach the full boot logs: boot with 'systemd.log-level=debug' on the kernel command line, and then attach 'journalctl -b'. Created attachment 1844685 [details]
journalctl -b after systemd.log-level=debug
In the past hibernation worked for me. But I was using LUKS root partition + LUKS swap partition without LVM. Also it was <=F34 (I cannot guarantee I did use hibernate on F34 although I probably did). Also it was a different laptop but that should be unrelated. So I suspect the change nonLVM->LVM did cause it (or F34->F35 upgrade). Dec 04 12:00:22 f35.jankratochvil.net systemd[1]: blockdev@dev-mapper-f35lvm\x2droot.target: Failed to load configuration: No such file or directory It seems that the blockdev@.target file is missing from the initrd. This is not an immediate problem, because that unit file has just one line of effective configuration, but it's sloppy. You don't have systemd-hibernate-resume installed, and IIUC, dracut uses it's own implementation. Can you attach 'lsinitrd' output? I suspect you don't have the 'resume' module enabled in the initrd. Created attachment 1844862 [details]
lsinitrd initramfs-5.15.6-200.fc35.x86_64.img
(In reply to Zbigniew Jędrzejewski-Szmek from comment #4) > It seems that the blockdev@.target file is missing from the initrd. True, you can check the output. > You don't have systemd-hibernate-resume installed, and IIUC, dracut uses > it's own implementation. I do not know how to fix that - so that it works for a newly installed distro, can you suggest? (In reply to Jan Kratochvil from comment #6) > (In reply to Zbigniew Jędrzejewski-Szmek from comment #4) > > It seems that the blockdev@.target file is missing from the initrd. > > True, you can check the output. What I was trying to say: it's a (small) bug in the dracut initrd generation logic. It should include this unit file if it's referred to by other units. In practice it probably doesn't matter because the unit only sets StopWhenUnneeded=yes, and the dracut initrd doesn't care too much about block devices becoming unused. > > You don't have systemd-hibernate-resume installed, and IIUC, dracut uses > > it's own implementation. > > I do not know how to fix that - so that it works for a newly installed > distro, can you suggest? It's not an error, just an observation. I don't remember all the dracut internals, so I had to figure out if it still uses a home-grown implementation. OK, so you don't have the 'resume' module enabled in your initrd. I guess that regenerating the module with that enabled will resolve the issue. There doesn't seem to be anything broken from the systemd side. I'll reassing this to dracut for additional comments. *** This bug has been marked as a duplicate of bug 1795422 *** |