mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-03 23:38:39 +00:00
swap: backing device should unconditionally want swap unit
There is no need to restrict this to only the 'nofail' case. In the '!nofail' case the unit is already wanted by swap.target, so this is not a functional change.
This commit is contained in:
+1
-2
@@ -187,8 +187,7 @@ static int swap_add_device_links(Swap *s) {
|
||||
return 0;
|
||||
|
||||
if (is_device_path(s->what))
|
||||
return unit_add_node_link(UNIT(s), s->what,
|
||||
!p->noauto && p->nofail &&
|
||||
return unit_add_node_link(UNIT(s), s->what, !p->noauto &&
|
||||
UNIT(s)->manager->running_as == SYSTEMD_SYSTEM);
|
||||
else
|
||||
/* File based swap devices need to be ordered after
|
||||
|
||||
Reference in New Issue
Block a user