aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pkg')
-rw-r--r--internal/pkg/exec.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/pkg/exec.go b/internal/pkg/exec.go
index 92b14ab7..5c1b399b 100644
--- a/internal/pkg/exec.go
+++ b/internal/pkg/exec.go
@@ -23,7 +23,7 @@ import (
"hakurei.app/message"
)
-// AbsWork is the container pathname [CureContext.GetWorkDir] is mounted on.
+// AbsWork is the container pathname [TContext.GetWorkDir] is mounted on.
var AbsWork = fhs.AbsRoot.Append("work/")
// ExecPath is a slice of [Artifact] and the [check.Absolute] pathname to make
@@ -39,6 +39,9 @@ type ExecPath struct {
W bool
}
+// SchedPolicy is the [container] scheduling policy.
+var SchedPolicy int
+
// PromoteLayers returns artifacts with identical-by-content layers promoted to
// the highest priority instance, as if mounted via [ExecPath].
func PromoteLayers(
@@ -408,6 +411,7 @@ func (a *execArtifact) cure(f *FContext, hostNet bool) (err error) {
z.ParentPerm = 0700
z.HostNet = hostNet
z.Hostname = "cure"
+ z.SchedPolicy = SchedPolicy
if z.HostNet {
z.Hostname = "cure-net"
}