-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Powere management - make it conditional, enable on UEFI targets, else disabled #8961
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
Conversation
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughAdds an exported global Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Rootfs as rootfs build script
participant Config as UEFI config
participant FS as /etc/systemd
note right of Config `#ccffcc`: new exported var\nPOWER_MANAGEMENT_FEATURES=yes
Rootfs->>Config: read POWER_MANAGEMENT_FEATURES
alt POWER_MANAGEMENT_FEATURES == "yes"
Rootfs-->>FS: skip creating 00-disable.conf
note right of Rootfs `#eef2ff`: power management overrides enabled
else POWER_MANAGEMENT_FEATURES != "yes"
Rootfs->>FS: create 00-disable.conf (disable suspend/hibernate)
note right of FS `#fff2ee`: sleep.conf.d present
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
f087d8c to
946fd97
Compare
946fd97 to
5e925d3
Compare
rpardini
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks.
I think for now this will do; other families/boards can enable POWER_MANAGEMENT_FEATURES=yes later.
|
✅ This PR has been reviewed and approved — all set for merge! |
Description
Only when POWER_MANAGEMENT_FEATURES is exactly "yes" block does not run and suspend/hibernate remain enabled.
Ref: #8720 (comment)
Checklist:
Summary by CodeRabbit