From e99d7affb0c128fa82722f9b3d79c99b5e5918cd Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 11 Aug 2025 02:52:32 +0900 Subject: container: use absolute for pathname This is simultaneously more efficient and less error-prone. This change caused minor API changes in multiple other packages. Signed-off-by: Ophestra --- hst/template_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'hst/template_test.go') diff --git a/hst/template_test.go b/hst/template_test.go index cf8ab81c..da119d4f 100644 --- a/hst/template_test.go +++ b/hst/template_test.go @@ -99,7 +99,7 @@ func TestTemplate(t *testing.T) { "filesystem": [ { "dst": "/tmp/", - "src": "tmpfs", + "src": "/proc/nonexistent", "write": true }, { @@ -126,10 +126,10 @@ func TestTemplate(t *testing.T) { } ], "symlink": [ - [ - "/run/user/65534", - "/run/user/150" - ] + { + "target": "/run/user/65534", + "linkname": "/run/user/150" + } ], "auto_root": "/var/lib/hakurei/base/org.debian", "root_flags": 2, -- cgit v1.3.1