Skip to content

Commit 114e5be

Browse files
committed
[nvidia-ctk-installer] do not revert cri-o config when nvidia is not default runtime
Signed-off-by: Christopher Desiniotis <[email protected]>
1 parent fae680c commit 114e5be

File tree

1 file changed

+4
-0
lines changed
  • cmd/nvidia-ctk-installer/container/runtime/crio

1 file changed

+4
-0
lines changed

cmd/nvidia-ctk-installer/container/runtime/crio/crio.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ func cleanupHook(co *Options) error {
180180

181181
// cleanupConfig removes the NVIDIA container runtime from the cri-o config
182182
func cleanupConfig(o *container.Options) error {
183+
if !o.SetAsDefault {
184+
return nil
185+
}
186+
183187
log.Infof("Reverting config file modifications")
184188

185189
cfg, err := getRuntimeConfig(o)

0 commit comments

Comments
 (0)