summaryrefslogtreecommitdiff
path: root/src/swap.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-25 03:11:26 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-25 03:11:26 +0200
commitd3689161a2870a56ba5a2837daa2ca3463e24710 (patch)
tree32b34eae66a613db706284e6e113a44fccb9f44e /src/swap.c
parent20604ebc04ce5d3b7d7d63e79f94cf0febf851c5 (diff)
mount: add global configuration options for handling of auto mounts
Diffstat (limited to 'src/swap.c')
-rw-r--r--src/swap.c4
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)