From 00e43e357ea709d8c1def0aed13192abbf9ac193 Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Mon, 22 Mar 2010 10:59:46 +0100 Subject: [PATCH] rules: virtio - fix is to check if the 'name' attribute is present Fix provided by Harald Hoyer. Signed-off-by: Amit Shah --- rules/rules.d/50-udev-default.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/rules.d/50-udev-default.rules b/rules/rules.d/50-udev-default.rules index da1535f9..e8116a37 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" -- 2.39.5