summaryrefslogtreecommitdiffstats
path: root/src/core/swap.c
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2019-10-28 18:50:43 +0100
committerFranck Bui <fbui@suse.com>2019-10-28 18:51:23 +0100
commitd336ba9fa6ac2a70202e6887c4ac52185bca0a50 (patch)
tree9369672901001c8d75b054fadc7efccae492c10b /src/core/swap.c
parentswap: do not make swap units wanted by its device unit anymore (diff)
downloadsystemd-d336ba9fa6ac2a70202e6887c4ac52185bca0a50.tar.xz
systemd-d336ba9fa6ac2a70202e6887c4ac52185bca0a50.zip
core: drop 'wants' parameter from unit_add_node_dependency()
Since Wants dependency is no more automagically added to swap and mount units, this parameter is no more used hence this patch drops it.
Diffstat (limited to 'src/core/swap.c')
-rw-r--r--src/core/swap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/swap.c b/src/core/swap.c
index 22827a296c..c184afa29d 100644
--- a/src/core/swap.c
+++ b/src/core/swap.c
@@ -197,7 +197,7 @@ static int swap_add_device_dependencies(Swap *s) {
return 0;
if (is_device_path(s->what))
- return unit_add_node_dependency(UNIT(s), s->what, false, UNIT_BINDS_TO, UNIT_DEPENDENCY_FILE);
+ return unit_add_node_dependency(UNIT(s), s->what, UNIT_BINDS_TO, UNIT_DEPENDENCY_FILE);
/* File based swap devices need to be ordered after systemd-remount-fs.service,
* since they might need a writable file system. */