Skip to content

Commit

Permalink
Specifiy DRIVER_ROOT consistently
Browse files Browse the repository at this point in the history
This change ensures that the nvidia-mig-manager CLI requires the
path to the driver root accept both the NVIDIA_DRIVER_ROOT and
DRIVER_ROOT environment variables in addition to the --driver-root
command line argument.

Signed-off-by: Christopher Desiniotis <[email protected]>
  • Loading branch information
cdesiniotis committed Jun 15, 2024
1 parent d6bb24f commit f4ff091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/nvidia-mig-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func main() {
Value: DefaultDriverRoot,
Usage: "Root path to the NVIDIA driver installation. Only used if --cdi-enabled is set.",
Destination: &driverRoot,
EnvVars: []string{"DRIVER_ROOT"},
EnvVars: []string{"NVIDIA_DRIVER_ROOT", "DRIVER_ROOT"},
},
&cli.StringFlag{
Name: "driver-root-ctr-path",
Expand Down

0 comments on commit f4ff091

Please sign in to comment.