Bug 5448

Summary: /usr/lib/udev/rules.d/60-nvidia-uvm.rules invalid substitution type
Product: Fedora Reporter: Julian Sikorski <belegdol>
Component: xorg-x11-drv-nvidiaAssignee: leigh scott <leigh123linux>
Status: RESOLVED FIXED    
Severity: enhancement CC: hans, kwizart, Michael.Riss, negativo17
Priority: P1    
Version: f31   
Hardware: x86_64   
OS: GNU/Linux   
namespace:
Attachments: patch doubling the $ characters

Description Julian Sikorski 2019-11-10 14:59:01 CET
I am seeing the following errors in journalctl:

lis 10 14:51:26 snowball2 systemd-udevd[717]: /usr/lib/udev/rules.d/60-nvidia-uvm.rules:1 Invalid value "/usr/bin/bash -c '/usr/bin/mknod -m 666 /dev/nvidia-uvm c $(grep nvidia-uvm /proc/devices | cut -d \  -f 1) 0'" for RUN (char 59: invalid substitution type), ignoring, but please fix it.
lis 10 14:51:26 snowball2 systemd-udevd[717]: /usr/lib/udev/rules.d/60-nvidia-uvm.rules:2 Invalid value "/usr/bin/bash -c '/usr/bin/mknod -m 666 /dev/nvidia-uvm-tools c $(grep nvidia-uvm /proc/devices | cut -d \  -f 1) 1'" for RUN (char 65: invalid substitution type), ignoring, but please fix it.
lis 10 14:51:26 snowball2 systemd-udevd[717]: /usr/lib/udev/rules.d/60-nvidia.rules:2 Invalid value "/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'" for RUN (char 28: invalid substitution type), ignoring, but please fix it.

I am not sure if it is causing any real issues, but it is polluting the journal at least.
Comment 1 leigh scott 2019-11-10 16:04:51 CET
This very low priority and unlikely that I will address it. 
Feel free to submit a patch to fix it.
Comment 2 Julian Sikorski 2019-11-10 16:55:32 CET
Created attachment 2105 [details]
patch doubling the $ characters

This patch seems to silence the udev complaints. I followed the same approach as one used here:
https://salsa.debian.org/systemd-team/systemd/commit/8797c07910b649e748d95e4ab4908688fc76215f
Comment 4 leigh scott 2019-11-16 03:56:30 CET
*** Bug 5460 has been marked as a duplicate of this bug. ***
Comment 5 leigh scott 2019-11-22 23:42:38 CET
Fix in version xorg-x11-drv-nvidia-440.36-1.fc31