aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/fsephemeral.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-25 18:30:40 +0900
committerOphestra <cat@gensokyo.uk>2025-08-25 18:38:19 +0900
commit6d202d73b41d28166f7bea7da36d1ce054711ff9 (patch)
tree8af4f9212fe7c3c49c8035119e8a4405e2c97070 /hst/fsephemeral.go
parent1438096339f49bdd466f3b057c7e695aa126fc3c (diff)
hst/fsbind: optional autoetc behaviour
This generalises the special field allowing any special behaviour to be matched from target. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/fsephemeral.go')
-rw-r--r--hst/fsephemeral.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hst/fsephemeral.go b/hst/fsephemeral.go
index 424a058d..ad212fda 100644
--- a/hst/fsephemeral.go
+++ b/hst/fsephemeral.go
@@ -38,7 +38,7 @@ func (e *FSEphemeral) Host() []*container.Absolute { return nil }
const fsEphemeralDefaultPerm = os.FileMode(0755)
-func (e *FSEphemeral) Apply(ops *container.Ops) {
+func (e *FSEphemeral) Apply(z *ApplyState) {
if !e.Valid() {
return
}
@@ -54,9 +54,9 @@ func (e *FSEphemeral) Apply(ops *container.Ops) {
}
if e.Write {
- ops.Tmpfs(e.Target, size, perm)
+ z.Tmpfs(e.Target, size, perm)
} else {
- ops.Readonly(e.Target, perm)
+ z.Readonly(e.Target, perm)
}
}