Bug 2060501

Summary: dracut does not add resume parameter to kernel command line for resuming for hibernate on new F35 install
Product: [Fedora] Fedora Reporter: Ranjan Maitra <itsme_410>
Component: dracutAssignee: dracut-maint-list
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 35CC: dracut-maint-list, dtardon, jamacku, jonathan, lnykryn, samuel-rhbugs, 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: 2022-04-12 11:17:50 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:

Description Ranjan Maitra 2022-03-03 15:56:46 UTC
Description of problem:

Setting up new installation does not set up hibernate to work.



Version-Release number of selected component (if applicable):

all versions


How reproducible:


Steps to Reproduce:
1. install swap and hibernate using "systemctl hibernate"
2. press button when laptop is in hibernate stage

Actual results:

Laptop goes down to hibernate as usual, however does not wake up and boots to a new rebooted machine.

Expected results:

Laptop goes down to hibernate as usual, and wakes up to last state.

Additional info:

From fedora-users mailing list:

The fix is to run "dracut -a resume -f".  This will update the initramfs to include the bits that let resume work.  

Sounds like a dracut bug to me. It should see the resume parameter on the kernel command line and just add the resume dracut module to the initramfs without having to request it explicitly.

Happy to provide more information as needed.

Comment 1 Ranjan Maitra 2022-03-08 22:20:45 UTC
Just a note that "dracut -a resume -f" does make hibernate work. As per the mailing list, dracut has a bug that needs to  see the resume parameter on the kernel command line and just add the resume dracut module to the initramfs without having to request it explicitly.

Comment 2 David Tardon 2022-04-12 11:17:50 UTC

*** This bug has been marked as a duplicate of bug 1795422 ***