-
Notifications
You must be signed in to change notification settings - Fork 400
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 does not generate images that support hibernation #2587
Comments
Thanks @MikPisula . Perhaps #2560 and/or #2527 and/or #2494 . Can you please include your log ? |
This error means that hibernation failed, not resume. IOW, this has nothing to do with dracut (or initrd in general). You might get more info about the reason for the failure by running
I find this hard to believe. |
Uploading the following logs: |
On the image built with mkinitpcio i can run
When I boot with an image built using dracut,
but it does not resume correctly, and instead initiates a new boot:
Additionally, swapon recognises that the swapfile has suspend data, and rewrites its signature:
|
Here's the output of
|
It does seem that dracut:
mkinitcpio:
|
After manually applying the fix in #2527, the issue seems to be resolved. |
Thanks for your feedback, I'd keep this open to avoid future duplicates. |
Describe the bug
Images built with dracut do not allow for hibernation.
Distribution used
EndeavourOS Linux
Dracut version
dracut 060
Init system
systemd
To Reproduce
systemctl hibernate
Failed to find location to hibernate to: Invalid argument
Expected behavior
The command should hibernate the system, and the state of the system should be restored from disk on boot.
Additional context
This was not an issue before I updated systemd to version 255. This issue is not present in images built with
mkinitcpio
as they allow for hibernation. I ensured sure that theresume
module was included in the initramfs image usinglsinitrd /boot/initramfs-linux.img -m | grep resume
The text was updated successfully, but these errors were encountered: