pub(crate) const GLOBAL_UKI_ADDONS_DIR: &str = "loader/addons";Expand description
Directory (relative to the ESP) where systemd-stub looks for UKI addons that apply
to every UKI, as opposed to addons scoped to a single UKI (which live alongside
it under BOOTC_UKI_DIR). Unlike per-UKI addons, these aren’t tied to a single
deployment, so they’re neither namespaced by deployment verity nor cleaned up by GC.
TODO: This directory is shared, unscoped machine state (any systemd-stub UKI on the ESP will load whatever’s here). Addons are now (re)installed on upgrade/switch (installed addons are auto-updated when the new image has a matching filename), but we still blindly overwrite same-named (global) files with no ownership tracking. Before recommending this feature for wider use we should track which global addon files are bootc-owned, and decide/document how this interacts with deployment rollback (a global addon update isn’t reverted by rolling back to an older deployment).