[systemd-devel] [PATCH] units: add ConditionKernelCommandLine=resume

Cristian Rodríguez crrodriguez at opensuse.org
Mon Feb 16 20:33:41 PST 2015


If there is no resume= ..it is not possible to
hubrid-sleep or hibernate
---
 units/systemd-hibernate.service.in    | 1 +
 units/systemd-hybrid-sleep.service.in | 1 +
 2 files changed, 2 insertions(+)

diff --git a/units/systemd-hibernate.service.in b/units/systemd-hibernate.service.in
index 29d9b69..2a21cfc 100644
--- a/units/systemd-hibernate.service.in
+++ b/units/systemd-hibernate.service.in
@@ -11,6 +11,7 @@ Documentation=man:systemd-suspend.service(8)
 DefaultDependencies=no
 Requires=sleep.target
 After=sleep.target
+ConditionKernelCommandLine=resume
 
 [Service]
 Type=oneshot
diff --git a/units/systemd-hybrid-sleep.service.in b/units/systemd-hybrid-sleep.service.in
index 914b686..b3039a0 100644
--- a/units/systemd-hybrid-sleep.service.in
+++ b/units/systemd-hybrid-sleep.service.in
@@ -11,6 +11,7 @@ Documentation=man:systemd-suspend.service(8)
 DefaultDependencies=no
 Requires=sleep.target
 After=sleep.target
+ConditionKernelCommandLine=resume
 
 [Service]
 Type=oneshot
-- 
2.2.2



More information about the systemd-devel mailing list