From ca247b80378b7248ed4d1eda8a97e2a1d659ec7b Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 14 Sep 2025 01:35:17 +0900 Subject: internal/app: mount /dev/shm early This avoids covering /dev/shm mounts from hst. Signed-off-by: Ophestra --- internal/app/app_nixos_linux_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/app/app_nixos_linux_test.go') diff --git a/internal/app/app_nixos_linux_test.go b/internal/app/app_nixos_linux_test.go index b6f5e44f..f38c27b9 100644 --- a/internal/app/app_nixos_linux_test.go +++ b/internal/app/app_nixos_linux_test.go @@ -135,6 +135,7 @@ var testCasesNixos = []sealTestCase{ Proc(m("/proc/")). Tmpfs(hst.AbsTmp, 4096, 0755). DevWritable(m("/dev/"), true). + Tmpfs(m("/dev/shm"), 0, 01777). Bind(m("/bin"), m("/bin"), 0). Bind(m("/usr/bin/"), m("/usr/bin/"), 0). Bind(m("/nix/store"), m("/nix/store"), 0). @@ -149,7 +150,6 @@ var testCasesNixos = []sealTestCase{ Etc(m("/etc/"), "8e2c76b066dabe574cf073bdb46eb5c1"). Bind(m("/var/lib/persist/module/hakurei/0/1"), m("/var/lib/persist/module/hakurei/0/1"), container.BindWritable|container.BindEnsure). Remount(m("/dev/"), syscall.MS_RDONLY). - Tmpfs(m("/dev/shm"), 0, 01777). Tmpfs(m("/run/user/"), 4096, 0755). Bind(m("/tmp/hakurei.1971/runtime/1"), m("/run/user/1971"), container.BindWritable). Bind(m("/tmp/hakurei.1971/tmpdir/1"), m("/tmp/"), container.BindWritable). -- cgit v1.3.1