summaryrefslogtreecommitdiffstats
path: root/src/core/swap.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-01-07 11:48:57 +0100
committerLennart Poettering <lennart@poettering.net>2020-01-09 11:03:53 +0100
commitc80a9a33d04fb4381327a69ce929c94a9f1d0e6c (patch)
tree5d127d9c883beceafdba11d1346fecad9f6dc72e /src/core/swap.c
parentMerge pull request #14523 from keszybz/refactorings (diff)
downloadsystemd-c80a9a33d04fb4381327a69ce929c94a9f1d0e6c.tar.xz
systemd-c80a9a33d04fb4381327a69ce929c94a9f1d0e6c.zip
core: clearly refuse OnFailure= deps on units that can't fail
Similar, refuse triggering deps on units that cannot trigger. And rework how we ignore After= dependencies on device units, to work the same way. See: #14142
Diffstat (limited to 'src/core/swap.c')
-rw-r--r--src/core/swap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/swap.c b/src/core/swap.c
index 03f443daec..b9879ba1ea 100644
--- a/src/core/swap.c
+++ b/src/core/swap.c
@@ -1593,6 +1593,8 @@ const UnitVTable swap_vtable = {
"Install\0",
.private_section = "Swap",
+ .can_fail = true,
+
.init = swap_init,
.load = swap_load,
.done = swap_done,