From c6be82bcf91fc4b6e61d9df40213e80367addbd8 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 3 Aug 2025 20:46:41 +0900 Subject: container/path: fhs path constants This increases readability since this can help disambiguate absolute paths from similarly named path segments. Signed-off-by: Ophestra --- internal/app/process_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/app/process_linux.go') diff --git a/internal/app/process_linux.go b/internal/app/process_linux.go index 516beb4b..088deab3 100644 --- a/internal/app/process_linux.go +++ b/internal/app/process_linux.go @@ -88,7 +88,7 @@ func (seal *outcome) Run(rs *RunState) error { defer cancel() cmd := exec.CommandContext(ctx, hsuPath) cmd.Stdin, cmd.Stdout, cmd.Stderr = os.Stdin, os.Stdout, os.Stderr - cmd.Dir = "/" // container init enters final working directory + cmd.Dir = container.FHSRoot // container init enters final working directory // shim runs in the same session as monitor; see shim.go for behaviour cmd.Cancel = func() error { return cmd.Process.Signal(syscall.SIGCONT) } -- cgit v1.3.1