From: Lennart Poettering Date: Tue, 28 Oct 2014 16:27:38 +0000 (+0100) Subject: swap: don't add too many deps for swap files form /proc/swap X-Git-Tag: v217~5 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f10af76de5e6589e35ed620c75f3f6eb02cdf345;p=elogind.git swap: don't add too many deps for swap files form /proc/swap --- diff --git a/src/core/swap.c b/src/core/swap.c index cf33ab602..13e12ad67 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