From 07509b3ba2e65ee1b18afdd4b9f7365cbd4f5da9 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 20 Jun 2026 01:51:57 +0900 Subject: [PATCH] cmd/app: additional bind types This adds optional and device mount points. Signed-off-by: Ophestra --- cmd/app/app.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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