summaryrefslogtreecommitdiff
path: root/src/swap.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-26 22:58:54 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-26 22:58:54 +0200
commit510051fc1264ace4ab657b52ec6fb5e2ccfda740 (patch)
treeb8c0a981b78f8cf6511b781eff05d90283c34997 /src/swap.c
parentda8f9f8cff32029c74e9e566435079b2c5db0a5e (diff)
swap: add only swaps listed in /etc/fstab automatically to swap.target, others should be added via .wants/ links
Diffstat (limited to 'src/swap.c')
-rw-r--r--src/swap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/swap.c b/src/swap.c
index abd8cdd8d6..4404dc0e71 100644
--- a/src/swap.c
+++ b/src/swap.c
@@ -176,7 +176,7 @@ static int swap_add_target_links(Swap *s) {
if (!p->noauto &&
(p->handle || s->meta.manager->swap_auto) &&
- !s->from_fragment &&
+ s->from_etc_fstab &&
s->meta.manager->running_as == MANAGER_SYSTEM)
if ((r = unit_add_dependency(tu, UNIT_WANTS, UNIT(s), true)) < 0)
return r;