aboutsummaryrefslogtreecommitdiffhomepage
path: root/config.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-10-27 12:08:17 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-10-27 12:09:34 +0900
commit7df9d8d01dadcb05396d278aba11afc2ab4a2328 (patch)
tree9114e61306153b50b2def1ab6f817af49e266427 /config.go
parent6d8bcb63f28fb289aef8d4b702d7d938ac0af4eb (diff)
system: move sd_booted implementation to os abstraction
This implements lazy loading of the systemd marker (they are not accessed in init and shim) and ensures consistent behaviour when running with a stub. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'config.go')
-rw-r--r--config.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/config.go b/config.go
index 2ba0b6e8..261b59c5 100644
--- a/config.go
+++ b/config.go
@@ -6,7 +6,6 @@ import (
"fmt"
"git.ophivana.moe/security/fortify/dbus"
- "git.ophivana.moe/security/fortify/internal"
"git.ophivana.moe/security/fortify/internal/app"
"git.ophivana.moe/security/fortify/internal/fmsg"
"git.ophivana.moe/security/fortify/internal/system"
@@ -50,7 +49,7 @@ func init() {
func init() {
methodHelpString := "Method of launching the child process, can be one of \"sudo\""
- if internal.SdBootedV {
+ if os.SdBooted() {
methodHelpString += ", \"systemd\""
}