Skip to content

Commit 0cb1229

Browse files
jgottulatonyhutter
authored andcommitted
Udev rules: replace deprecated $tempnode with $devnode
The $tempnode substitution is so old that it's not even mentioned in the man page anymore. It is still technically supported by udev, but with plenty of "deprecated" comments surrounding it. The preferred modern equivalent of $tempnode is $devnode (or alternatively, %N). Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Pavel Zakharov <[email protected]> Signed-off-by: Justin Gottula <[email protected]> Closes openzfs#12302
1 parent c20ba9b commit 0cb1229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

udev/rules.d/60-zvol.rules.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# persistent disk links: /dev/zvol/dataset_name
44
# also creates compatibility symlink of /dev/dataset_name
55

6-
KERNEL=="zd*", SUBSYSTEM=="block", ACTION=="add|change", PROGRAM="@udevdir@/zvol_id $tempnode", SYMLINK+="zvol/%c %c"
6+
KERNEL=="zd*", SUBSYSTEM=="block", ACTION=="add|change", PROGRAM="@udevdir@/zvol_id $devnode", SYMLINK+="zvol/%c %c"

0 commit comments

Comments
 (0)