[systemd-commits] src/core
Lennart Poettering
lennart at kemper.freedesktop.org
Tue Oct 28 09:37:14 PDT 2014
src/core/swap.c | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit f10af76de5e6589e35ed620c75f3f6eb02cdf345
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 17:27:38 2014 +0100
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 cf33ab6..13e12ad 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
More information about the systemd-commits
mailing list