diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-25 17:51:08 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-25 17:52:57 +0900 |
| commit | 1438096339f49bdd466f3b057c7e695aa126fc3c (patch) | |
| tree | a374384097ab7346c0a1cb730edc1c838f5adbc7 /hst/config.go | |
| parent | 059164d4fa80047fc50bffc1582424d00cf4c139 (diff) | |
hst/config: handle filesystem entry targeting root
This allows any fstype supported by hst to be directly mounted on sysroot. A special case in internal/app applies the matching entry early and excludes it from path hiding.
Closes #5.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/config.go')
| -rw-r--r-- | hst/config.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/hst/config.go b/hst/config.go index 8226a35f..e2f95d14 100644 --- a/hst/config.go +++ b/hst/config.go @@ -93,17 +93,12 @@ type ( // pass through all devices Device bool `json:"device,omitempty"` - // container mount points + // container mount points; + // if the first element targets /, it is inserted early and excluded from path hiding Filesystem []FilesystemConfigJSON `json:"filesystem"` // create symlinks inside container filesystem Link []LinkConfig `json:"symlink"` - // automatically bind mount top-level directories to container root; - // the zero value disables this behaviour - AutoRoot *container.Absolute `json:"auto_root,omitempty"` - // extra flags for AutoRoot - RootFlags int `json:"root_flags,omitempty"` - // read-only /etc directory Etc *container.Absolute `json:"etc,omitempty"` // automatically set up /etc symlinks |
