Skip to content

feat(resume): add device used for resume - #2232

Draft
pvalena wants to merge 1 commit into
dracut-ng:mainfrom
pvalena:fix-resume-drive
Draft

feat(resume): add device used for resume#2232
pvalena wants to merge 1 commit into
dracut-ng:mainfrom
pvalena:fix-resume-drive

Conversation

@pvalena

@pvalena pvalena commented Feb 10, 2026

Copy link
Copy Markdown
Member

The device used in resume= might be on a different filesystem than root device, but it might not be mounted. Adding it explicitly regardless of whether it's mounted fixes the issue in which there might be missing drivers in initrd to actually check whether the system can be resumed.

RFC: Please suggest if any refactoring or behaviour change would be benefitial in this this very rare scenario. This is just intended to increase resiliency.

Checklist

  • I have tested it locally
  • I have reviewed and updated any documentation if relevant
  • I am providing new code and test(s) for it

@pvalena
pvalena requested a review from a team as a code owner February 10, 2026 20:55
@github-actions github-actions Bot added modules Issue tracker for all modules resume Issues related to the resume module labels Feb 10, 2026
@pvalena

pvalena commented Feb 11, 2026

Copy link
Copy Markdown
Member Author

Log with dracut test run with debug on -- diff from run on Fedora Rawhide 109, with the only change being this patch: https://gist.github.com/pvalena/56bad65a423d8daa4340698c4120de1a

Comment thread modules.d/74resume/module-setup.sh Outdated
regardless of whether it's mounted.
_dev=$(_get_resume_dev)
[[ $_dev ]] && push_user_devs "$_dev"

_dev=$(grep -oP "resume=\K([^ ]*)" /proc/cmdline)

@devkontrol devkontrol Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this read e.g. /etc/cmdline.d/*.conf as well ?

Also I think /proc/cmdline should be only read if hostonly is set to yes.

@devkontrol devkontrol added needs discussion Issues requiring discussion stale communication is stuck labels Aug 10, 2026
@devkontrol
devkontrol marked this pull request as draft August 10, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

modules Issue tracker for all modules needs discussion Issues requiring discussion resume Issues related to the resume module stale communication is stuck

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants