aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-09 19:08:54 +0900
committerOphestra <cat@gensokyo.uk>2025-08-09 19:08:54 +0900
commit02271583fb791987a9406c9ba282c75ff7a0e395 (patch)
tree00b35900e1ff7bf4fa5f24e7322a9beb222098b9 /internal
parentef54b2cd086ee8a3186c9646711d70e226815973 (diff)
container: remove PATH lookup behaviour
This is way higher level than the container package and does not even work unless every path is mounted in the exact same location. This behaviour causes nothing but confusion and problems, Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/app/shim_linux.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/app/shim_linux.go b/internal/app/shim_linux.go
index 8573ad10..b1eddcbc 100644
--- a/internal/app/shim_linux.go
+++ b/internal/app/shim_linux.go
@@ -157,13 +157,9 @@ func ShimMain() {
log.Fatalf("path %q is not a directory", params.Home)
}
- var name string
- if len(params.Container.Args) > 0 {
- name = params.Container.Args[0]
- }
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
cancelContainer.Store(&stop)
- z := container.New(ctx, name)
+ z := container.New(ctx)
z.Params = *params.Container
z.Stdin, z.Stdout, z.Stderr = os.Stdin, os.Stdout, os.Stderr