mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
Ensure that driver root is not empty
This commit is contained in:
@@ -278,6 +278,11 @@ func (t *Installer) ValidateOptions(opts *Options) error {
|
||||
opts.createDeviceNodes = *cli.NewStringSlice()
|
||||
}
|
||||
|
||||
// Ensure that DriverRoot is set to "/" if empty.
|
||||
if opts.DriverRoot == "" {
|
||||
opts.DriverRoot = "/"
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user