diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-29 22:15:05 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-29 22:15:05 +0900 |
| commit | 08eeafe8174efed2414d66788a927168efeba691 (patch) | |
| tree | 966ab2b3abec177ee3eaeac777b4b636a32261df /container/mount.go | |
| parent | d7c7c69a13868546c26c3e5096fca09304a6e182 (diff) | |
container/mount: unwrap vfs decoder errors
These are now handled by init. This eliminates generic WrapErr from mount and procPaths.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/mount.go')
| -rw-r--r-- | container/mount.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/container/mount.go b/container/mount.go index 6b134ce4..fd7ac723 100644 --- a/container/mount.go +++ b/container/mount.go @@ -149,12 +149,7 @@ func (p *procPaths) remount(target string, flags uintptr) error { return p.mountinfo(func(d *vfs.MountInfoDecoder) error { n, err := d.Unfold(targetKFinal) if err != nil { - if errors.As(err, new(vfs.UnfoldTargetError)) { - return msg.WrapErr(err, - fmt.Sprintf("mount point %q never appeared in mountinfo", targetKFinal)) - } - return wrapErrSuffix(err, - "cannot unfold mount hierarchy:") + return err } if err = remountWithFlags(p.k, n, mf); err != nil { |
