diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-04-05 14:00:52 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-04-05 14:04:21 +0900 |
| commit | 33a0e6c01bb93488f5442231eef3b93012d3af1e (patch) | |
| tree | 0ae62faa64d82d64ffc9f7ac6de7d754a251d501 /internal | |
| parent | d58f5c7590c1500055af6b8682d50134100c3a94 (diff) | |
hst: conditionally skip root remount
This enables the writable root overlay use case.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/outcome/spcontainer.go | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |
