Fix executable file not found when restoring shims

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko 2021-11-22 17:46:03 -08:00
parent 4aea5da858
commit 5015130f7a

View File

@ -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,