Watch
0
0
Fork
You've already forked hyperhive
0

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:
atlas 2026-11-15 16:34:25 +01:00 • committed by mara
commit ca51bb9d54

View file

@ -18,10 +18,10 @@
//! never followed. Nothing is deleted or repaired, so whatever is there stays
//! for the operator.
//!
//! The drop-in names the running hive-priv binary, which nothing else roots
//! once the system has moved on to a newer build. [`pin_binary`] keeps a GC
//! root on it for as long as the drop-in exists, and [`unpin_binary`] drops
//! the root with the drop-in.
//! With no configured binary the drop-in names the running hive-priv binary,
//! which nothing else roots once the system has moved on to a newer build.
//! [`pin_binary`] keeps a GC root on it for as long as the drop-in exists, and
//! [`unpin_binary`] drops the root with the drop-in.
//!
//! The entry point is [`run`]; [`check`] holds the rules.