aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/hst.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.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.go')
-rw-r--r--hst/hst.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/hst/hst.go b/hst/hst.go
index 6e77dc98..6654a4b7 100644
--- a/hst/hst.go
+++ b/hst/hst.go
@@ -97,6 +97,7 @@ func Template() *Config {
"GOOGLE_DEFAULT_CLIENT_SECRET": "OTJgUOQcT7lO7GsGZq2G4IlT",
},
Filesystem: []FilesystemConfigJSON{
+ {&FSBind{container.AbsFHSRoot, container.AbsFHSVarLib.Append("hakurei/base/org.debian"), true, false, false, true}},
{&FSEphemeral{Target: container.AbsFHSTmp, Write: true, Perm: 0755}},
{&FSOverlay{
Target: container.MustAbs("/nix/store"),
@@ -111,11 +112,9 @@ func Template() *Config {
Target: container.MustAbs("/data/data/org.chromium.Chromium"), Write: true}},
{&FSBind{Source: container.AbsFHSDev.Append("dri"), Device: true, Optional: true}},
},
- Link: []LinkConfig{{container.AbsFHSRunUser.Append("65534"), container.FHSRunUser + "150"}},
- AutoRoot: container.AbsFHSVarLib.Append("hakurei/base/org.debian"),
- RootFlags: container.BindWritable,
- Etc: container.AbsFHSEtc,
- AutoEtc: true,
+ Link: []LinkConfig{{container.AbsFHSRunUser.Append("65534"), container.FHSRunUser + "150"}},
+ Etc: container.AbsFHSEtc,
+ AutoEtc: true,
},
}
}