From eb3385d490523262e26b6cb691a5e18a07a8b26d Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 29 Aug 2025 01:46:54 +0900 Subject: container/initsymlink: unwrap mount errors The mount function now wraps its own errors in a much more descriptive type with proper message formatting. Wrapping them no longer makes any sense. Signed-off-by: Ophestra --- container/initoverlay_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'container/initoverlay_test.go') diff --git a/container/initoverlay_test.go b/container/initoverlay_test.go index e12cffed..2c076f25 100644 --- a/container/initoverlay_test.go +++ b/container/initoverlay_test.go @@ -186,7 +186,7 @@ func TestMountOverlayOp(t *testing.T) { }, nil, []kexpect{ {"mkdirAll", expectArgs{"/sysroot/nix/store", os.FileMode(0700)}, nil, nil}, {"mount", expectArgs{"overlay", "/sysroot/nix/store", "overlay", uintptr(0), "upperdir=/host/mnt-root/nix/.rw-store/.upper,workdir=/host/mnt-root/nix/.rw-store/.work,lowerdir=/host/mnt-root/nix/ro-store,userxattr"}, nil, errUnique}, - }, wrapErrSuffix(errUnique, `cannot mount overlay on "/nix/store":`)}, + }, errUnique}, {"success single layer", &Params{ParentPerm: 0700}, &MountOverlayOp{ Target: MustAbs("/nix/store"), -- cgit v1.3.1