aboutsummaryrefslogtreecommitdiffhomepage
path: root/fst
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-04-11 18:54:00 +0900
committerOphestra <cat@gensokyo.uk>2025-04-11 18:54:00 +0900
commit996790946092a9291eb21e297d1f0f04deab8b42 (patch)
treea3a8ff49deb5ed02ae282391720ce9613c2db7b3 /fst
parentc806f43881223a85ad888f434e078dcc68de028d (diff)
sandbox: relative autoetc links
This allows nested containers to use autoetc, and increases compatibility with other implementations. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'fst')
-rw-r--r--fst/sandbox.go15
1 files changed, 0 insertions, 15 deletions
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
}