From c661a3b63a6ec6a680338879dccbcb0b6285f6c6 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 10 Jun 2026 13:34:44 +0900 Subject: cmd/mbf: migrate shell to enter This reduces duplicate code. This change also adds resolv.conf to the container. Signed-off-by: Ophestra --- internal/pkg/exec.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/pkg') diff --git a/internal/pkg/exec.go b/internal/pkg/exec.go index 0fe20848..4dd9fc26 100644 --- a/internal/pkg/exec.go +++ b/internal/pkg/exec.go @@ -591,6 +591,7 @@ var ( func (c *Cache) EnterExec( ctx context.Context, a Artifact, + hostname string, retainSession bool, stdin io.Reader, stdout, stderr io.Writer, @@ -671,6 +672,9 @@ func (c *Cache) EnterExec( z.Env = append(z.Env, "TERM="+s) } } + if hostname != "" { + z.Hostname = hostname + } if err = z.Start(); err != nil { return -- cgit v1.3.1