aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-02 00:34:52 +0900
committerOphestra <cat@gensokyo.uk>2025-08-02 00:34:52 +0900
commitb32b1975a89d60beab75dfca723925131a06065b (patch)
tree75e4902d1359083a4b701c4462f8011c8179b40b /cmd
parent2b1eaa62f1ef94de8b22e2433a6070d8e7bbeb99 (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 'cmd')
-rw-r--r--cmd/hakurei/print.go4
-rw-r--r--cmd/hakurei/print_test.go34
2 files changed, 20 insertions, 18 deletions
diff --git a/cmd/hakurei/print.go b/cmd/hakurei/print.go
index 807831c4..1169d10f 100644
--- a/cmd/hakurei/print.go
+++ b/cmd/hakurei/print.go
@@ -114,10 +114,6 @@ func printShowInstance(
}
t.Printf(" Etc:\t%s\n", etc)
- if len(container.Cover) > 0 {
- t.Printf(" Cover:\t%s\n", strings.Join(container.Cover, " "))
- }
-
t.Printf(" Path:\t%s\n", config.Path)
}
if len(config.Args) > 0 {
diff --git a/cmd/hakurei/print_test.go b/cmd/hakurei/print_test.go
index 7979fb65..0a4e91ba 100644
--- a/cmd/hakurei/print_test.go
+++ b/cmd/hakurei/print_test.go
@@ -44,11 +44,11 @@ func Test_printShowInstance(t *testing.T) {
Flags: userns devel net device tty mapuid autoetc
Root: /var/lib/hakurei/base/org.debian (2)
Etc: /etc
- Cover: /var/run/nscd
Path: /run/current-system/sw/bin/chromium
Arguments: chromium --ignore-gpu-blocklist --disable-smooth-scrolling --enable-features=UseOzonePlatform --ozone-platform=wayland
Filesystem
+ w+tmpfs:/tmp
+/nix/store
+/run/current-system
+/run/opengl-driver
@@ -124,11 +124,11 @@ App
Flags: userns devel net device tty mapuid autoetc
Root: /var/lib/hakurei/base/org.debian (2)
Etc: /etc
- Cover: /var/run/nscd
Path: /run/current-system/sw/bin/chromium
Arguments: chromium --ignore-gpu-blocklist --disable-smooth-scrolling --enable-features=UseOzonePlatform --ozone-platform=wayland
Filesystem
+ w+tmpfs:/tmp
+/nix/store
+/run/current-system
+/run/opengl-driver
@@ -276,6 +276,11 @@ App
"device": true,
"filesystem": [
{
+ "dst": "/tmp",
+ "src": "tmpfs",
+ "write": true
+ },
+ {
"src": "/nix/store"
},
{
@@ -307,10 +312,7 @@ App
"auto_root": "/var/lib/hakurei/base/org.debian",
"root_flags": 2,
"etc": "/etc",
- "auto_etc": true,
- "cover": [
- "/var/run/nscd"
- ]
+ "auto_etc": true
}
},
"time": "1970-01-01T00:00:00.000000009Z"
@@ -406,6 +408,11 @@ App
"device": true,
"filesystem": [
{
+ "dst": "/tmp",
+ "src": "tmpfs",
+ "write": true
+ },
+ {
"src": "/nix/store"
},
{
@@ -437,10 +444,7 @@ App
"auto_root": "/var/lib/hakurei/base/org.debian",
"root_flags": 2,
"etc": "/etc",
- "auto_etc": true,
- "cover": [
- "/var/run/nscd"
- ]
+ "auto_etc": true
}
}
`},
@@ -590,6 +594,11 @@ func Test_printPs(t *testing.T) {
"device": true,
"filesystem": [
{
+ "dst": "/tmp",
+ "src": "tmpfs",
+ "write": true
+ },
+ {
"src": "/nix/store"
},
{
@@ -621,10 +630,7 @@ func Test_printPs(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
}
},
"time": "1970-01-01T00:00:00.000000009Z"