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 --- hst/hst_test.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'hst/hst_test.go') diff --git a/hst/hst_test.go b/hst/hst_test.go index a3930f48..b8ec79c9 100644 --- a/hst/hst_test.go +++ b/hst/hst_test.go @@ -102,6 +102,13 @@ func TestTemplate(t *testing.T) { "map_real_uid": true, "device": true, "filesystem": [ + { + "type": "bind", + "dst": "/", + "src": "/var/lib/hakurei/base/org.debian", + "write": true, + "autoroot": true + }, { "type": "ephemeral", "dst": "/tmp/", @@ -148,8 +155,6 @@ func TestTemplate(t *testing.T) { "linkname": "/run/user/150" } ], - "auto_root": "/var/lib/hakurei/base/org.debian", - "root_flags": 2, "etc": "/etc/", "auto_etc": true } -- cgit v1.3.1