From: Amit Shah Date: Mon, 22 Mar 2010 09:59:46 +0000 (+0100) Subject: rules: virtio - fix is to check if the 'name' attribute is present X-Git-Tag: 174~583 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00e43e357ea709d8c1def0aed13192abbf9ac193;p=systemd rules: virtio - fix is to check if the 'name' attribute is present Fix provided by Harald Hoyer. Signed-off-by: Amit Shah --- 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"