aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/fs.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-06-17 02:16:57 +0900
committerOphestra <cat@gensokyo.uk>2026-06-17 02:16:57 +0900
commit92b61889a6db7e5e351cade9c871a9d670917ee9 (patch)
tree57ab12560490ab4adc48dad94665646660087aac /hst/fs.go
parent28e133c298c2e9d45c57ab570e35936248d86ddf (diff)
hst: support ephemeral overlay mounts
This is useful for reusing a readonly template without autoroot. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/fs.go')
-rw-r--r--hst/fs.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/hst/fs.go b/hst/fs.go
index cb35f925..2f2c377c 100644
--- a/hst/fs.go
+++ b/hst/fs.go
@@ -37,6 +37,8 @@ type Ops interface {
Bind(source, target *check.Absolute, flags int) Ops
// Overlay appends an op that mounts the overlay pseudo filesystem.
Overlay(target, state, work *check.Absolute, layers ...*check.Absolute) Ops
+ // OverlayEphemeral appends a MountOverlayOp with an ephemeral upperdir and workdir.
+ OverlayEphemeral(target *check.Absolute, layers ...*check.Absolute) Ops
// OverlayReadonly appends an op that mounts the overlay pseudo filesystem readonly.
OverlayReadonly(target *check.Absolute, layers ...*check.Absolute) Ops