declare the root-check link on hosts without a controller too
This commit is contained in:
parent
29c57e058a
commit
7eb9db47d6
1 changed files with 23 additions and 7 deletions
|
|
@ -616,7 +616,16 @@ let
|
|||
&& (s.hive-c0re.wantedBy or [ ]) == [ ]
|
||||
&& !(swarmServicesOnly.systemd.sockets ? hive-c0re)
|
||||
&& !(swarmServicesOnly.systemd.sockets ? hive-priv)
|
||||
&& !(s ? swarm-bao-queue-agent);
|
||||
&& !(s ? swarm-bao-queue-agent)
|
||||
# The root check the platform containers carry runs through a link
|
||||
# this host still declares, since no controller module does. Presence
|
||||
# control: the unit and the rule are both found.
|
||||
&& lib.any (
|
||||
r: lib.hasPrefix "L+ /run/hive-rootfs-check " r
|
||||
) swarmServicesOnly.systemd.tmpfiles.rules
|
||||
&& lib.any (
|
||||
p: lib.hasPrefix "-/run/hive-rootfs-check check-rootfs --warn-only " (toString p)
|
||||
) s."container@swarm-bao".serviceConfig.ExecStartPre;
|
||||
}
|
||||
{
|
||||
# On a controller that runs none of them, so the link cannot come from
|
||||
|
|
|
|||
Loading…
Reference in a new issue