fix: handle rpm-ostree distros and mark as systemd-enabled

This commit is contained in:
Gianluca Boiano
2024-09-10 12:49:04 +02:00
parent becf2eb62b
commit 4f2cb13771
+3
View File
@@ -20,6 +20,9 @@ import (
)
func isSystemd() bool {
if _, err := exec.LookPath("rpm-ostree"); err == nil {
return true
}
if _, err := os.Stat("/run/systemd/system"); err == nil {
return true
}