File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,7 @@ NVIDIA_UVM_MODULE_PARAMS=()
1515NVIDIA_MODESET_MODULE_PARAMS=()
1616NVIDIA_PEERMEM_MODULE_PARAMS=()
1717TARGETARCH=${TARGETARCH:? " Missing TARGETARCH env" }
18-
19- OPEN_KERNEL_MODULES_ENABLED=${OPEN_KERNEL_MODULES_ENABLED:- false}
20- [[ " ${OPEN_KERNEL_MODULES_ENABLED} " == " true" ]] && KERNEL_TYPE=kernel-open || KERNEL_TYPE=kernel
18+ KERNEL_MODULE_TYPE=${KERNEL_MODULE_TYPE:- auto}
2119
2220export DEBIAN_FRONTEND=noninteractive
2321
@@ -359,6 +357,10 @@ _install_driver() {
359357 install_args+=(" --concurrency-level=${MAX_THREADS} " )
360358 fi
361359
360+ if [[ " ${KERNEL_MODULE_TYPE} " == " proprietary" || " ${KERNEL_MODULE_TYPE} " == " open" ]]; then
361+ install_args+=(" --kernel-module-type=${KERNEL_MODULE_TYPE} " )
362+ fi
363+
362364 # Install the NVIDIA driver in one step
363365 sh NVIDIA-Linux-$DRIVER_ARCH -$DRIVER_VERSION .run --silent \
364366 --ui=none \
@@ -374,7 +376,6 @@ _install_driver() {
374376 --x-module-path=/tmp/null \
375377 --x-library-path=/tmp/null \
376378 --x-sysconfig-path=/tmp/null \
377- -m=" ${KERNEL_TYPE} " \
378379 ${install_args[@]+" ${install_args[@]} " }
379380}
380381
You can’t perform that action at this time.
0 commit comments