aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/initoverlay_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-29 01:46:54 +0900
committerOphestra <cat@gensokyo.uk>2025-08-29 01:46:54 +0900
commiteb3385d490523262e26b6cb691a5e18a07a8b26d (patch)
treeed8e9e95f81b4962ebf23d206e963b016975f6c9 /container/initoverlay_test.go
parentb8669338da36c9a4fabec6c49cad20a5f8180cf2 (diff)
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 <cat@gensokyo.uk>
Diffstat (limited to 'container/initoverlay_test.go')
-rw-r--r--container/initoverlay_test.go2
1 files changed, 1 insertions, 1 deletions
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"),