diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-02 00:34:52 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-02 00:34:52 +0900 |
| commit | b32b1975a89d60beab75dfca723925131a06065b (patch) | |
| tree | 75e4902d1359083a4b701c4462f8011c8179b40b /hst | |
| parent | 2b1eaa62f1ef94de8b22e2433a6070d8e7bbeb99 (diff) | |
hst/container: remove cover
This was never useful, and is now completely replaced by regular FilesystemConfig being able to mount tmpfs.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst')
| -rw-r--r-- | hst/container.go | 3 | ||||
| -rw-r--r-- | hst/template.go | 2 | ||||
| -rw-r--r-- | hst/template_test.go | 10 |
3 files changed, 7 insertions, 8 deletions
diff --git a/hst/container.go b/hst/container.go index 9ca14a8b..ebce07b9 100644 --- a/hst/container.go +++ b/hst/container.go @@ -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. diff --git a/hst/template.go b/hst/template.go index 391e58e2..5758462e 100644 --- a/hst/template.go +++ b/hst/template.go @@ -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"}, }, } } diff --git a/hst/template_test.go b/hst/template_test.go index 7f0caa7d..02ec7748 100644 --- a/hst/template_test.go +++ b/hst/template_test.go @@ -98,6 +98,11 @@ func TestTemplate(t *testing.T) { "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 } }` |
