From 92b61889a6db7e5e351cade9c871a9d670917ee9 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 17 Jun 2026 02:16:57 +0900 Subject: hst: support ephemeral overlay mounts This is useful for reusing a readonly template without autoroot. Signed-off-by: Ophestra --- hst/fs.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hst/fs.go') 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 -- cgit v1.3.1