From e3e6f996894f0eea0e766b4194922f5c7235fb01 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 21 Jan 2020 18:16:53 +0100 Subject: [PATCH] =?utf8?q?core:=20downgrade=20swap=20=E2=86=92=20device=20?= =?utf8?q?dep=20to=20Requires=3D?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This catches up with 9d06297e262966de71095debd1537fc223f940a3 and adapts the change made to swap units. We generally don't want to react a-posteriori to swap devices disappearing, bad things will happen anyway. --- src/core/swap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/swap.c b/src/core/swap.c index 4155112f412..713d7856185 100644 --- a/src/core/swap.c +++ b/src/core/swap.c @@ -212,7 +212,7 @@ static int swap_add_device_dependencies(Swap *s) { mask = s->from_proc_swaps ? UNIT_DEPENDENCY_PROC_SWAP : UNIT_DEPENDENCY_FILE; if (is_device_path(p->what)) - return unit_add_node_dependency(UNIT(s), p->what, UNIT_BINDS_TO, mask); + return unit_add_node_dependency(UNIT(s), p->what, UNIT_REQUIRES, mask); /* File based swap devices need to be ordered after systemd-remount-fs.service, since they might need * a writable file system. */ -- 2.47.3