Merge pull request #6278 from mxpv/resolve
Fix executable file not found when restoring shims
This commit is contained in:
commit
2877865a94
@ -114,6 +114,13 @@ func (m *ShimManager) loadShims(ctx context.Context) error {
|
|||||||
runtime = container.Runtime.Name
|
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,
|
binaryCall := shimBinary(bundle,
|
||||||
shimBinaryConfig{
|
shimBinaryConfig{
|
||||||
runtime: runtime,
|
runtime: runtime,
|
||||||
|
Loading…
Reference in New Issue
Block a user