Repository navigation
Place the hibernation resume hook before filesystems - #8888
yashranaway wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Updates hibernation setup so mkinitcpio runs resume before filesystems, including migration and removal compatibility.
Changes:
- Generates a managed, deduplicated resume-hook configuration.
- Migrates legacy drop-ins and adds focused shell coverage.
- Recognizes both legacy and managed formats during removal.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
bin/omarchy-hibernation-setup |
Writes and upgrades the ordered resume configuration. |
bin/omarchy-hibernation-remove |
Detects managed and legacy configurations. |
migrations/1787968459.sh |
Migrates existing legacy drop-ins. |
test/shell.d/hibernation-resume-hook-test.sh |
Tests ordering, deduplication, fallback, and migration parity. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…resume-hook-order # Conflicts: # bin/omarchy-hibernation-setup
|
Thanks for putting a complete change together here. Updating My hesitation is upstream of the implementation: I am not convinced the ordering is load-bearing. I If that holds, this PR takes on migration and compatibility risk without a behaviour change to show One thing worth doing either way, independent of ordering: #11791 reports that the enterprise Wi-Fi |
|
You're right: mkinitcpio runs |
Places the hibernation resume hook before filesystems and repairs existing installs. Fixes #8471.
<<<< AI wording below >>>>
Problem
Appending
resumeafterfilesystemscan make mkinitcpio mount the root filesystem before resume handling, so hibernation cannot restore reliably.Fix
Install a managed drop-in that removes duplicate resume hooks and inserts one before filesystems. The migration accepts both legacy and managed configs, records machine-wide rebuild completion, and retries if
limine-mkinitcpiofails before that marker is written.Verification
bash test/shell.d/hibernation-resume-hook-test.shbash test/shell.d/bin-style-test.shbash -n bin/omarchy-hibernation-setup bin/omarchy-hibernation-remove migrations/1787968459.sh test/shell.d/hibernation-resume-hook-test.shgit diff --check