summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2010-03-22 10:59:46 +0100
committerKay Sievers <kay.sievers@vrfy.org>2010-03-22 10:59:46 +0100
commit00e43e357ea709d8c1def0aed13192abbf9ac193 (patch)
treeb15db3e9e56f15ecf910b756d9f5a9681482cbee
parent4dd9b291354e76f34b0d6d7b5c3b28d03a624418 (diff)
rules: virtio - fix is to check if the 'name' attribute is present
Fix provided by Harald Hoyer. Signed-off-by: Amit Shah <amit.shah@redhat.com>
-rw-r--r--rules/rules.d/50-udev-default.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/rules.d/50-udev-default.rules b/rules/rules.d/50-udev-default.rules
index da1535f92b..e8116a372f 100644
--- a/rules/rules.d/50-udev-default.rules
+++ b/rules/rules.d/50-udev-default.rules
@@ -18,7 +18,7 @@ KERNEL=="mwave", GROUP="dialout"
KERNEL=="hvc*|hvsi*", GROUP="dialout"
# virtio serial / console ports
-KERNEL=="vport*", SYMLINK+="virtio-ports/$attr{name}"
+KERNEL=="vport*", ATTR{name}=="?*", SYMLINK+="virtio-ports/$attr{name}"
# mem
KERNEL=="null|zero|full|random|urandom", MODE="0666"