Skip to content

Commit 5087b9d

Browse files
committed
use f.system instead of syscall
1 parent 7947b83 commit 5087b9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/flist/cleanup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func (f *flistModule) forceUnmountAndRemove(path string) error {
156156
log.Warn().Err(err).Msgf("normal unmount failed for %s, trying lazy unmount", path)
157157

158158
// Try lazy unmount (MNT_DETACH)
159-
err = syscall.Unmount(path, syscall.MNT_DETACH)
159+
err = f.system.Unmount(path, syscall.MNT_DETACH)
160160
if err != nil {
161161
return errors.Wrapf(err, "lazy unmount also failed for %s", path)
162162
}

0 commit comments

Comments
 (0)