From 4f2cb13771700c52d4abb73c853c0e4587b1fe98 Mon Sep 17 00:00:00 2001 From: Gianluca Boiano Date: Tue, 10 Sep 2024 12:49:04 +0200 Subject: [PATCH] fix: handle rpm-ostree distros and mark as systemd-enabled --- service_systemd_linux.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/service_systemd_linux.go b/service_systemd_linux.go index e9fb4d6..6c21f29 100644 --- a/service_systemd_linux.go +++ b/service_systemd_linux.go @@ -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 }