Skip to content

Commit df0d9cf

Browse files
committed
fix unmount
Signed-off-by: Darren Stahl <[email protected]>
1 parent f1ca1f9 commit df0d9cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

windows/runtime.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ func (r *windowsRuntime) Delete(ctx context.Context, t runtime.Task) (*runtime.E
214214
ExitedAt: rtExit.Timestamp,
215215
})
216216

217-
if err := mount.UnmountAll(wt.rootfs[0].Source, 0); err != nil {
218-
log.G(ctx).WithError(err).WithField("path", wt.rootfs[0].Source).
217+
if err := mount.UnmountAll(wt.mountLocation, 0); err != nil {
218+
log.G(ctx).WithError(err).WithField("path", wt.mountLocation).
219219
Warn("failed to unmount rootfs on failure")
220220
}
221221

0 commit comments

Comments
 (0)