diff options
| author | Craig Jennings <c@cjennings.net> | 2026-08-14 04:27:11 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-08-14 04:27:11 -0500 |
| commit | 5f52d3887c610b93c6918d637f63cc326237aea5 (patch) | |
| tree | 0b690960e97b3906a9149834ad40763f5c1355a9 /tests/installer-steps/test_orchestrators.py | |
| parent | 2e78f55638ee80da6ce4998d37996bea73076efa (diff) | |
| download | archsetup-5f52d3887c610b93c6918d637f63cc326237aea5.tar.gz archsetup-5f52d3887c610b93c6918d637f63cc326237aea5.zip | |
feat(installer): set a 90-minute suspend-to-hibernate ceiling
systemctl suspend-then-hibernate reads HibernateDelaySec, and unset it depends on the hardware: a machine with a battery hibernates on a low-battery alarm at an hour nobody chose, and one without falls back to systemd's 2h default. 90 minutes states a ceiling both machines share. A laptop can still hibernate earlier, because systemd runs both timers and takes whichever fires first.
The number is a tradeoff and the drop-in carries it: long enough that stepping out of a meeting costs a screen unlock rather than a passphrase and a full resume, short enough that a laptop left in a bag drops its encryption keys out of RAM. A suspended machine is still holding them.
Numbered 60- because systemd reserves 10-40 for vendor drop-ins under /usr and 60-90 for local ones under /etc. A 10- file here would sort below a vendor drop-in and quietly lose to it.
Diffstat (limited to 'tests/installer-steps/test_orchestrators.py')
| -rw-r--r-- | tests/installer-steps/test_orchestrators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/installer-steps/test_orchestrators.py b/tests/installer-steps/test_orchestrators.py index 34c46d1..c2eb710 100644 --- a/tests/installer-steps/test_orchestrators.py +++ b/tests/installer-steps/test_orchestrators.py @@ -28,7 +28,7 @@ ARCHSETUP = os.path.join(REPO_ROOT, "archsetup") ORCHESTRATORS = { "essential_services": [ "configure_randomness", "configure_networking", "configure_power", - "configure_backlight_access", + "configure_hibernate_delay", "configure_backlight_access", "configure_ssh_server", "configure_fail2ban", "configure_firewall", "configure_service_discovery", "configure_job_scheduling", "configure_package_cache", "configure_snapshots", |
