From cd5959fe5ab04786cd5dee3cf09f725229ae7c7b Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 17 Mar 2026 13:35:48 +0900 Subject: ext: isolate from container/std These are too general to belong in the container package. This targets the v0.4 release to reduce the wrapper maintenance burden. Signed-off-by: Ophestra --- internal/outcome/shim.go | 5 +++-- internal/pkg/exec.go | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'internal') diff --git a/internal/outcome/shim.go b/internal/outcome/shim.go index a35ea1fe..91bd70a4 100644 --- a/internal/outcome/shim.go +++ b/internal/outcome/shim.go @@ -18,6 +18,7 @@ import ( "hakurei.app/container/fhs" "hakurei.app/container/seccomp" "hakurei.app/container/std" + "hakurei.app/ext" "hakurei.app/hst" "hakurei.app/internal/pipewire" "hakurei.app/message" @@ -74,9 +75,9 @@ type shimParams struct { Verbose bool // Copied from [hst.Config]. - SchedPolicy std.SchedPolicy + SchedPolicy ext.SchedPolicy // Copied from [hst.Config]. - SchedPriority std.Int + SchedPriority ext.Int // Outcome setup ops, contains setup state. Populated by outcome.finalise. Ops []outcomeOp diff --git a/internal/pkg/exec.go b/internal/pkg/exec.go index 998dce70..c5b8b10d 100644 --- a/internal/pkg/exec.go +++ b/internal/pkg/exec.go @@ -20,6 +20,7 @@ import ( "hakurei.app/container/fhs" "hakurei.app/container/seccomp" "hakurei.app/container/std" + "hakurei.app/ext" "hakurei.app/message" ) @@ -414,7 +415,7 @@ func (a *execArtifact) cure(f *FContext, hostNet bool) (err error) { z.HostNet = hostNet z.Hostname = "cure" z.SetScheduler = SetSchedIdle - z.SchedPolicy = std.SCHED_IDLE + z.SchedPolicy = ext.SCHED_IDLE if z.HostNet { z.Hostname = "cure-net" } -- cgit v1.3.1