diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-08-25 21:24:21 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-08-25 21:24:21 +0200 |
commit | 81bf310edce1fccb2720b48fcc5f4bdbd187cd55 (patch) | |
tree | 3fd5c181df6765448e23f21956f0372a7e7a1540 /src/swap.c | |
parent | ca2937ce0bf43e657c131000a2dc7f34c5b2291a (diff) |
mount: imply noauto for mount points configured with native mount files
Diffstat (limited to 'src/swap.c')
-rw-r--r-- | src/swap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/swap.c b/src/swap.c index 69ccd3db6c..0beb9212ea 100644 --- a/src/swap.c +++ b/src/swap.c @@ -113,7 +113,10 @@ static int swap_add_target_links(Swap *s) { if ((r = manager_load_unit(s->meta.manager, SPECIAL_SWAP_TARGET, NULL, NULL, &tu)) < 0) return r; - if (!p->noauto && (p->handle || s->meta.manager->swap_auto) && s->meta.manager->running_as == MANAGER_SYSTEM) + if (!p->noauto && + (p->handle || s->meta.manager->swap_auto) && + !s->from_fragment && + s->meta.manager->running_as == MANAGER_SYSTEM) if ((r = unit_add_dependency(tu, UNIT_WANTS, UNIT(s), true)) < 0) return r; |