diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-08-25 03:11:26 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-08-25 03:11:26 +0200 |
commit | d3689161a2870a56ba5a2837daa2ca3463e24710 (patch) | |
tree | 32b34eae66a613db706284e6e113a44fccb9f44e /src/swap.c | |
parent | 20604ebc04ce5d3b7d7d63e79f94cf0febf851c5 (diff) |
mount: add global configuration options for handling of auto mounts
Diffstat (limited to 'src/swap.c')
-rw-r--r-- | src/swap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/swap.c b/src/swap.c index c81fd67cc8..4a672fbdff 100644 --- a/src/swap.c +++ b/src/swap.c @@ -195,7 +195,9 @@ static int swap_load(Unit *u) { if ((r = unit_set_description(u, s->what)) < 0) return r; - if ((r = unit_add_node_link(u, s->what, u->meta.manager->running_as == MANAGER_SYSTEM)) < 0) + if ((r = unit_add_node_link(u, s->what, + u->meta.manager->running_as == MANAGER_SYSTEM && + u->meta.manager->swap_on_plug)) < 0) return r; if ((r = swap_add_mount_links(s)) < 0) |