hive-priv: write a configured stable exe path into unit drop-ins
HIVE_PRIV_EXE, set by the module to the /run/hive-rootfs-check link, is checked at start and used for the drop-in's ExecStartPre. Without it the running binary's path is used as before, and an unlinked one gets an error that names the cause.
This commit is contained in:
parent
cb7a9badf7
commit
ca51bb9d54
1 changed files with 172 additions and 41 deletions
|
|
@ -137,6 +137,11 @@ in
|
|||
# The owner a namespaced agent's data moves to. Which agents are
|
||||
# namespaced is not set here: hive-c0re sends it with each start.
|
||||
HIVE_PRIV_USERNS_DATA_OWNER = toString userns.dataOwner;
|
||||
# The binary an agent's drop-in `ExecStartPre=` runs. The tmpfiles link
|
||||
# above points at the current package and never goes away, so a garbage
|
||||
# collection or a switch that leaves this process running cannot leave a
|
||||
# drop-in naming a binary that is gone.
|
||||
HIVE_PRIV_EXE = rootfsCheck.hivePriv;
|
||||
};
|
||||
serviceConfig = {
|
||||
ExecStart = "${controllerCfg.package}/bin/hive-priv";
|
||||
|
|
|
|||
Loading…
Reference in a new issue