mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
Fix using devRoot
on Tegra platforms
Using `WithDevRoot` on Tegra platforms was incorrectly setting `driverRoot`, fix it so that it correctly sets `devRoot`. Signed-off-by: Jared Baur <jaredbaur@fastmail.com>
This commit is contained in:
parent
9baed635d1
commit
508438a0c5
@ -119,9 +119,9 @@ func WithDriverRoot(driverRoot string) Option {
|
|||||||
|
|
||||||
// WithDevRoot sets the /dev root.
|
// WithDevRoot sets the /dev root.
|
||||||
// If this is unset, the driver root is assumed.
|
// If this is unset, the driver root is assumed.
|
||||||
func WithDevRoot(driverRoot string) Option {
|
func WithDevRoot(devRoot string) Option {
|
||||||
return func(o *tegraOptions) {
|
return func(o *tegraOptions) {
|
||||||
o.driverRoot = driverRoot
|
o.devRoot = devRoot
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user