Skip to content

Commit

Permalink
Fix executable file not found when restoring shims
Browse files Browse the repository at this point in the history
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
  • Loading branch information
mxpv committed Nov 23, 2021
1 parent 4aea5da commit 5015130
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions runtime/v2/shim_load.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ func (m *ShimManager) loadShims(ctx context.Context) error {
runtime = container.Runtime.Name
}

runtime, err = m.resolveRuntimePath(runtime)
if err != nil {
bundle.Delete()
log.G(ctx).WithError(err).Error("failed to resolve runtime path")
continue
}

binaryCall := shimBinary(bundle,
shimBinaryConfig{
runtime: runtime,
Expand Down

0 comments on commit 5015130

Please sign in to comment.