1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 19:21:53 +03:00

swap: don't add too many deps for swap files form /proc/swap

This commit is contained in:
Lennart Poettering 2014-10-28 17:27:38 +01:00
parent cc821d02a3
commit f10af76de5

View File

@ -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