diff options
author | Mike Yuan <me@yhndnzj.com> | 2023-04-18 19:21:55 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2023-06-23 17:57:49 +0200 |
commit | 760e99bb52dd132aeab14802c9ed2889471e9cdf (patch) | |
tree | 8353599a122b04e26c32f12dc1e2cea9f7577066 /units | |
parent | bootctl: log correct error about device_path_make_canonical() (diff) | |
download | systemd-760e99bb52dd132aeab14802c9ed2889471e9cdf.tar.xz systemd-760e99bb52dd132aeab14802c9ed2889471e9cdf.zip |
hibernate-resume: rework to follow the logic of sleep.c and use
main-func.h
Preparation for #27247
Diffstat (limited to 'units')
-rw-r--r-- | units/meson.build | 4 | ||||
-rw-r--r-- | units/systemd-hibernate-resume@.service.in | 22 |
2 files changed, 0 insertions, 26 deletions
diff --git a/units/meson.build b/units/meson.build index df6da78abe..dff7b3904f 100644 --- a/units/meson.build +++ b/units/meson.build @@ -282,10 +282,6 @@ units = [ { 'file' : 'systemd-growfs@.service.in' }, { 'file' : 'systemd-halt.service' }, { - 'file' : 'systemd-hibernate-resume@.service.in', - 'conditions' : ['ENABLE_HIBERNATE'], - }, - { 'file' : 'systemd-hibernate.service.in', 'conditions' : ['ENABLE_HIBERNATE'], }, diff --git a/units/systemd-hibernate-resume@.service.in b/units/systemd-hibernate-resume@.service.in deleted file mode 100644 index 142bb339e1..0000000000 --- a/units/systemd-hibernate-resume@.service.in +++ /dev/null @@ -1,22 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -# -# This file is part of systemd. -# -# systemd is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or -# (at your option) any later version. - -[Unit] -Description=Resume from hibernation using device %f -Documentation=man:systemd-hibernate-resume@.service(8) -DefaultDependencies=no -BindsTo=%i.device -Wants=local-fs-pre.target -After=%i.device -Before=local-fs-pre.target -AssertPathExists=/etc/initrd-release - -[Service] -Type=oneshot -ExecStart={{ROOTLIBEXECDIR}}/systemd-hibernate-resume %f |