hive-gateway: tmpfiles rule for /run/hive-agent (argus 🟡 on #829)

Defensive against the fresh-boot-before-any-agent-spawn window where
the bind-mount source wouldn't exist from c0re's per-agent
`set_nspawn_flags` mkdir chain yet. nspawn auto-creates missing
sources, so this is intent-explicit rather than functional fix.
This commit is contained in:
atlas 2026-05-31 16:05:02 +02:00 committed by mara
commit e1bc9e42f1

View file

@ -279,6 +279,16 @@ in
}
];
# Ensure the per-agent UDS bind-mount source exists at host boot,
# before the gateway container's first start. nspawn would
# auto-create an empty dir if missing (argus 🟡 on #829), but a
# tmpfiles rule makes the intent explicit and dodges the
# fresh-boot-before-any-agent-spawn window where the dir wouldn't
# exist yet from c0re's per-agent `set_nspawn_flags` mkdir chain.
systemd.tmpfiles.rules = [
"d /run/hive-agent 0755 root root - -"
];
containers.hive-gateway = {
autoStart = true;
ephemeral = false;