Ensure that driver root is not empty

This commit is contained in:
Evan Lezar
2024-10-25 18:19:09 +02:00
parent e4547bdda6
commit 984189cea4

View File

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