diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-06-20 01:51:57 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-06-20 01:51:57 +0900 |
| commit | 07509b3ba2e65ee1b18afdd4b9f7365cbd4f5da9 (patch) | |
| tree | 0adc12452f5f41d2aa853a2ff4a25aeeaaca19f6 | |
| parent | a7485d587ab0f4692fb16202172f6443cff7a49e (diff) | |
cmd/app: additional bind types
This adds optional and device mount points.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | cmd/app/app.go | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/cmd/app/app.go b/cmd/app/app.go index 7e67763f..9494fe8b 100644 --- a/cmd/app/app.go +++ b/cmd/app/app.go @@ -201,6 +201,20 @@ func parse(id string, base *check.Absolute, r io.Reader) (*hst.Config, error) { ) continue + case "ro+": + source, target, err := parsePair(value) + if err != nil { + return nil, err + } + c.Container.Filesystem = append(c.Container.Filesystem, + hst.FilesystemConfigJSON{FilesystemConfig: &hst.FSBind{ + Target: target, + Source: source, + Optional: true, + }}, + ) + continue + case "rw": source, target, err := parsePair(value) if err != nil { @@ -215,6 +229,20 @@ func parse(id string, base *check.Absolute, r io.Reader) (*hst.Config, error) { ) continue + case "dev": + source, target, err := parsePair(value) + if err != nil { + return nil, err + } + c.Container.Filesystem = append(c.Container.Filesystem, + hst.FilesystemConfigJSON{FilesystemConfig: &hst.FSBind{ + Target: target, + Source: source, + Device: true, + }}, + ) + continue + case "own": c.SessionBus.Own = append(c.SessionBus.Own, value) continue |
