Watch
0
0
Fork
You've already forked hyperhive
0

fix(matrix): the deferred starter logs the state its boot ended in

A degraded guest still starts the services, and now the journal says so next
to the start. The VM test pins the line.
This commit is contained in:
maia 2026-11-28 06:13:12 +01:00 • committed by mara
commit c12e231d32

View file

@ -114,8 +114,10 @@ in
path = [ pkgs.systemd ];
serviceConfig.Type = "simple";
script = ''
# `degraded` (a unit of the boot failed) exits 1 and is still over.
systemctl is-system-running --wait >/dev/null || true
# `degraded` (a unit of the boot failed) exits 1 and is still over;
# the state goes to the journal next to the start.
state=$(systemctl is-system-running --wait || true)
echo "swarm-container-deferred-start: the boot ended $state; starting ${lib.concatStringsSep " " cfg.startAfterReady}"
systemctl start --no-block ${lib.concatMapStringsSep " " (n: "${n}.service") cfg.startAfterReady}
'';
};