From f10af76de5e6589e35ed620c75f3f6eb02cdf345 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 28 Oct 2014 17:27:38 +0100 Subject: swap: don't add too many deps for swap files form /proc/swap --- src/core/swap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/swap.c b/src/core/swap.c index cf33ab602e..13e12ad67a 100644 --- a/src/core/swap.c +++ b/src/core/swap.c @@ -196,6 +196,9 @@ static int swap_add_device_links(Swap *s) { if (!s->what) return 0; + if (!s->from_fragment) + return 0; + if (is_device_path(s->what)) return unit_add_node_link(UNIT(s), s->what, UNIT(s)->manager->running_as == SYSTEMD_SYSTEM); else -- cgit v1.2.3-54-g00ecf