diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-10-28 17:27:38 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-10-28 17:37:06 +0100 |
commit | f10af76de5e6589e35ed620c75f3f6eb02cdf345 (patch) | |
tree | f43ebfa3869add4ddca4c2e6fd1dfe58ed3082dc /src/core/swap.c | |
parent | cc821d02a37c8c76aaf15bae2d33fee1bdc4b2e0 (diff) |
swap: don't add too many deps for swap files form /proc/swap
Diffstat (limited to 'src/core/swap.c')
-rw-r--r-- | src/core/swap.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |