From 996790946092a9291eb21e297d1f0f04deab8b42 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 11 Apr 2025 18:54:00 +0900 Subject: sandbox: relative autoetc links This allows nested containers to use autoetc, and increases compatibility with other implementations. Signed-off-by: Ophestra --- fst/sandbox.go | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'fst') diff --git a/fst/sandbox.go b/fst/sandbox.go index cc98ec82..2a6f3475 100644 --- a/fst/sandbox.go +++ b/fst/sandbox.go @@ -239,21 +239,6 @@ func (s *SandboxConfig) ToContainer(sys SandboxSys, uid, gid *int) (*sandbox.Par container.Link(l[0], l[1]) } - // perf: this might work better if implemented as a setup op in container init - if !s.AutoEtc { - if s.Etc != "" { - container.Bind(s.Etc, "/etc", 0) - } - } else { - const hostEtc = Tmp + "/etc" - - etcPath := s.Etc - if etcPath == "" { - etcPath = "/etc" - } - container.Bind(etcPath, hostEtc, 0).Etc(hostEtc) - } - return container, maps.Clone(s.Env), nil } -- cgit v1.3.1