aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/initremount.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/initremount.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/initremount.go')
-rw-r--r--container/initremount.go3
1 files changed, 1 insertions, 2 deletions
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 {