systemctl is-enabled can return 'linked' even if service is enabled.

This commit is contained in:
Kamo Kuma
2025-02-10 21:00:21 -05:00
parent b2726f3a67
commit 66196ceb17

View File

@@ -1045,7 +1045,7 @@ fn check_systemd_unit_enabled(name: &str) -> bool {
.output()
{
let buf = String::from_utf8_lossy(&out.stdout);
return buf.contains("enabled");
return buf.contains("enabled") || buf.contains("linked");
}
false
}