audit fix and code stability improvement

This commit is contained in:
2026-02-26 16:09:44 +01:00
parent 07ccf7ccc7
commit f76acd6256
5 changed files with 53 additions and 21 deletions

View File

@@ -108,7 +108,6 @@ impl PreflightAuditor for DellXps9380Sal {
}
});
// Tool availability check
let tool_check = self.fact_sheet.paths.tools.contains_key("dell_fan_ctrl");
steps.push(AuditStep {
description: "Dell Fan Control Tool".to_string(),
@@ -125,6 +124,7 @@ impl EnvironmentGuard for DellXps9380Sal {
let mut suppressed = self.suppressed_services.lock().unwrap();
for s in services {
if Command::new("systemctl").args(["is-active", "--quiet", s]).status()?.success() {
debug!("Suppressing service: {}", s);
Command::new("systemctl").args(["stop", s]).status()?;
suppressed.push(s.to_string());
}