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/initremount.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'container/initremount.go') diff --git a/container/initremount.go b/container/initremount.go index af58c740..6df8a330 100644 --- a/container/initremount.go +++ b/container/initremount.go @@ -22,8 +22,7 @@ type RemountOp struct { func (r *RemountOp) Valid() bool { return r != nil && r.Target != nil } func (*RemountOp) early(*setupState, syscallDispatcher) error { return nil } func (r *RemountOp) apply(_ *setupState, k syscallDispatcher) error { - return wrapErrSuffix(k.remount(toSysroot(r.Target.String()), r.Flags), - fmt.Sprintf("cannot remount %q:", r.Target)) + return k.remount(toSysroot(r.Target.String()), r.Flags) } func (r *RemountOp) Is(op Op) bool { -- cgit v1.3.1