aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/hst_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-25 17:51:08 +0900
committerOphestra <cat@gensokyo.uk>2025-08-25 17:52:57 +0900
commit1438096339f49bdd466f3b057c7e695aa126fc3c (patch)
treea374384097ab7346c0a1cb730edc1c838f5adbc7 /hst/hst_test.go
parent059164d4fa80047fc50bffc1582424d00cf4c139 (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/hst_test.go')
-rw-r--r--hst/hst_test.go9
1 files changed, 7 insertions, 2 deletions
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
@@ -103,6 +103,13 @@ func TestTemplate(t *testing.T) {
"device": true,
"filesystem": [
{
+ "type": "bind",
+ "dst": "/",
+ "src": "/var/lib/hakurei/base/org.debian",
+ "write": true,
+ "autoroot": true
+ },
+ {
"type": "ephemeral",
"dst": "/tmp/",
"write": true,
@@ -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
}