From 33a0e6c01bb93488f5442231eef3b93012d3af1e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 5 Apr 2026 14:00:52 +0900 Subject: hst: conditionally skip root remount This enables the writable root overlay use case. Signed-off-by: Ophestra --- internal/outcome/spcontainer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal') diff --git a/internal/outcome/spcontainer.go b/internal/outcome/spcontainer.go index 0ad1de50..d9398d2c 100644 --- a/internal/outcome/spcontainer.go +++ b/internal/outcome/spcontainer.go @@ -290,7 +290,9 @@ func (s *spFilesystemOp) toContainer(state *outcomeStateParams) error { if state.Container.Flags&hst.FDevice == 0 { state.params.Remount(fhs.AbsDev, syscall.MS_RDONLY) } - state.params.Remount(fhs.AbsRoot, syscall.MS_RDONLY) + if !state.as.NoRemountRoot { + state.params.Remount(fhs.AbsRoot, syscall.MS_RDONLY) + } state.params.Env = make([]string, 0, len(state.env)) for key, value := range state.env { -- cgit v1.3.1