aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/app_nixos_test.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 /internal/app/app_nixos_test.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 'internal/app/app_nixos_test.go')
-rw-r--r--internal/app/app_nixos_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/app/app_nixos_test.go b/internal/app/app_nixos_test.go
index 9488c6b0..e2ed585f 100644
--- a/internal/app/app_nixos_test.go
+++ b/internal/app/app_nixos_test.go
@@ -311,3 +311,7 @@ func (s *stubNixOS) Paths() internal.Paths {
RunDirPath: "/run/user/1971/fortify",
}
}
+
+func (s *stubNixOS) SdBooted() bool {
+ return true
+}