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:
parent
cc821d02a3
commit
f10af76de5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user