hst/container: remove cover
All checks were successful
Test / Create distribution (push) Successful in 33s
Test / Sandbox (push) Successful in 2m6s
Test / Hakurei (push) Successful in 2m56s
Test / Sandbox (race detector) (push) Successful in 3m55s
Test / Hpkg (push) Successful in 3m55s
Test / Hakurei (race detector) (push) Successful in 4m31s
Test / Flake checks (push) Successful in 1m20s

This was never useful, and is now completely replaced by regular FilesystemConfig being able to mount tmpfs.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-08-02 00:34:52 +09:00
parent 2b1eaa62f1
commit b32b1975a8
8 changed files with 28 additions and 33 deletions

View File

@@ -69,9 +69,6 @@ type (
Etc string `json:"etc,omitempty"`
// automatically set up /etc symlinks
AutoEtc bool `json:"auto_etc"`
// cover these paths or create them if they do not already exist
Cover []string `json:"cover"`
}
// FilesystemConfig is an abstract representation of a bind mount.

View File

@@ -78,6 +78,7 @@ func Template() *Config {
"GOOGLE_DEFAULT_CLIENT_SECRET": "OTJgUOQcT7lO7GsGZq2G4IlT",
},
Filesystem: []*FilesystemConfig{
{Dst: "/tmp", Src: SourceTmpfs, Write: true},
{Src: "/nix/store"},
{Src: "/run/current-system"},
{Src: "/run/opengl-driver"},
@@ -91,7 +92,6 @@ func Template() *Config {
RootFlags: container.BindWritable,
Etc: "/etc",
AutoEtc: true,
Cover: []string{"/var/run/nscd"},
},
}
}

View File

@@ -97,6 +97,11 @@ func TestTemplate(t *testing.T) {
"map_real_uid": true,
"device": true,
"filesystem": [
{
"dst": "/tmp",
"src": "tmpfs",
"write": true
},
{
"src": "/nix/store"
},
@@ -129,10 +134,7 @@ func TestTemplate(t *testing.T) {
"auto_root": "/var/lib/hakurei/base/org.debian",
"root_flags": 2,
"etc": "/etc",
"auto_etc": true,
"cover": [
"/var/run/nscd"
]
"auto_etc": true
}
}`