chiark / gitweb /
rules: we do not have static devices which are renamed
[elogind.git] / rules / rules.d / 50-udev-default.rules
index 374db500e67adc287dbf97d6959a1c89486de554..a5f08233ed5788098152a533db88a2fbd76e7b34 100644 (file)
@@ -17,6 +17,9 @@ KERNEL=="ppp",                        MODE="0600"
 KERNEL=="mwave",               GROUP="dialout"
 KERNEL=="hvc*|hvsi*",          GROUP="dialout"
 
+# virtio serial / console ports
+KERNEL=="vport*", ATTR{name}=="?*", SYMLINK+="virtio-ports/$attr{name}"
+
 # mem
 KERNEL=="null|zero|full|random|urandom", MODE="0666"
 KERNEL=="mem|kmem|port|nvram", GROUP="kmem", MODE="0640"
@@ -112,4 +115,3 @@ KERNEL=="rrom[0-9]*",               MODE="0400"
 
 # do not delete static device nodes
 ACTION=="remove", NAME=="", TEST=="/lib/udev/devices/%k", OPTIONS+="ignore_remove"
-ACTION=="remove", NAME=="?*", TEST=="/lib/udev/devices/$name", OPTIONS+="ignore_remove"