diff options
author | 2014-10-28 17:27:38 +0100 | |
---|---|---|
committer | 2014-10-28 17:37:06 +0100 | |
commit | f10af76de5e6589e35ed620c75f3f6eb02cdf345 (patch) | |
tree | f43ebfa3869add4ddca4c2e6fd1dfe58ed3082dc | |
parent | udev: path_id - set supported_parent for well-known SCSI setups (diff) | |
download | systemd-f10af76de5e6589e35ed620c75f3f6eb02cdf345.tar.gz systemd-f10af76de5e6589e35ed620c75f3f6eb02cdf345.tar.bz2 systemd-f10af76de5e6589e35ed620c75f3f6eb02cdf345.zip |
swap: don't add too many deps for swap files form /proc/swap
-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 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 |