commit f31632b9248ba6bd77775cad17be5301a0e5cc61
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sun Nov 10 17:52:16 2019 +0000
Fix udev rules (rfbz#5448)
60-nvidia-uvm.rules | 4 ++--
60-nvidia.rules | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/60-nvidia-uvm.rules b/60-nvidia-uvm.rules
index 8f42f89..9a8b8a6 100644
--- a/60-nvidia-uvm.rules
+++ b/60-nvidia-uvm.rules
@@ -1,2 +1,2 @@
-KERNEL=="nvidia_uvm", RUN+="/usr/bin/bash -c '/usr/bin/mknod -m 666
/dev/nvidia-uvm c $(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 0'"
-KERNEL=="nvidia_uvm", RUN+="/usr/bin/bash -c '/usr/bin/mknod -m 666
/dev/nvidia-uvm-tools c $(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 1'"
+KERNEL=="nvidia_uvm", RUN+="/usr/bin/bash -c '/usr/bin/mknod -m 666
/dev/nvidia-uvm c $$(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 0'"
+KERNEL=="nvidia_uvm", RUN+="/usr/bin/bash -c '/usr/bin/mknod -m 666
/dev/nvidia-uvm-tools c $$(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 1'"
diff --git a/60-nvidia.rules b/60-nvidia.rules
index c1d19be..97fd5b9 100644
--- a/60-nvidia.rules
+++ b/60-nvidia.rules
@@ -1,5 +1,5 @@
KERNEL=="nvidia", RUN+="/usr/bin/bash -c '/usr/bin/mknod -Z -m 666
/dev/nvidiactl c 195 255'"
-KERNEL=="nvidia", RUN+="/usr/bin/bash -c 'for i in $(cat
/proc/driver/nvidia/gpus/*/information | grep Minor | cut -d \ -f 4); do /usr/bin/mknod
-Z -m 666 /dev/nvidia${i} c 195 ${i}; done'"
+KERNEL=="nvidia", RUN+="/usr/bin/bash -c 'for i in $$(cat
/proc/driver/nvidia/gpus/*/information | grep Minor | cut -d \ -f 4); do /usr/bin/mknod
-Z -m 666 /dev/nvidia$${i} c 195 $${i}; done'"
KERNEL=="nvidia_modeset", RUN+="/usr/bin/bash -c '/usr/bin/mknod -Z -m
666 /dev/nvidia-modeset c 195 254'"
# Enable runtime PM for NVIDIA VGA/3D controller devices on driver bind