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:
parent
3a29aee001
commit
e1bc9e42f1
1 changed files with 10 additions and 0 deletions
|
|
@ -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 = {
|
containers.hive-gateway = {
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
ephemeral = false;
|
ephemeral = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue