Enable per-order privileged scripts on managed devices

This commit is contained in:
2026-11-18 00:02:17 +01:00
parent 2aa460e337
commit ea87d8141c
20 changed files with 864 additions and 157 deletions
+4 -2
View File
@@ -78,9 +78,11 @@ impl Config {
})
}
fn validate_profile(&self) -> Result<()> {
let state = self.state.as_path();
ensure!(
self.state.as_path()
== std::path::Path::new(rmm_privileged_helper::readiness::SHARED_STATE),
state == std::path::Path::new(rmm_privileged_helper::readiness::SHARED_STATE)
|| (self.profile == HelperProfile::FullMaintenanceV1
&& state == std::path::Path::new("/var/lib/rmm-discovery-helper")),
"SHARED_HELPER_LEDGER_REQUIRED"
);
if self.profile == HelperProfile::FullMaintenanceV1 {