From 1438096339f49bdd466f3b057c7e695aa126fc3c Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 25 Aug 2025 17:51:08 +0900 Subject: 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 --- internal/app/seal_linux.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'internal/app/seal_linux.go') diff --git a/internal/app/seal_linux.go b/internal/app/seal_linux.go index 23d65f95..fb6f39b6 100644 --- a/internal/app/seal_linux.go +++ b/internal/app/seal_linux.go @@ -244,8 +244,14 @@ func (seal *outcome) finalise(ctx context.Context, sys sys.State, config *hst.Co Tty: true, AutoEtc: true, - AutoRoot: container.AbsFHSRoot, - RootFlags: container.BindWritable, + Filesystem: []hst.FilesystemConfigJSON{ + {&hst.FSBind{ + Target: container.AbsFHSRoot, + Source: container.AbsFHSRoot, + Write: true, + AutoRoot: true, + }}, + }, } // bind GPU stuff -- cgit v1.3.1