diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-10-26 22:58:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-10-26 22:58:54 +0200 |
commit | 510051fc1264ace4ab657b52ec6fb5e2ccfda740 (patch) | |
tree | b8c0a981b78f8cf6511b781eff05d90283c34997 /src/swap.c | |
parent | da8f9f8cff32029c74e9e566435079b2c5db0a5e (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.c | 2 |
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; |