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

Andrei Borzenkov arvidjaar at gmail.com
Tue Feb 17 19:30:13 PST 2015


В Tue, 17 Feb 2015 01:33:41 -0300
Cristian Rodríguez <crrodriguez at opensuse.org> пишет:

> If there is no resume= ..it is not possible to
> hubrid-sleep or hibernate

Why? (default) resume device can be specified directly in initrd.

> ---
>  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



More information about the systemd-devel mailing list