File device-mapper-link of Package lvm2.3893

From 90d6f1d65de4c314af1aab1e0deddcb0d64bbd06 Mon Sep 17 00:00:00 2001
From: Neil Brown <neilb@suse.de>
Date: Fri, 19 Aug 2016 16:13:09 +0200
Subject: [PATCH] Always create /dev/device-mapper link

Make sure
  /dev/device-mapper
exists as a link to /dev/mapper/control

Resolves: bnc#724578
Signed-off-by: NeilBrown <neilb@suse.de>
---
 udev/10-dm.rules.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/udev/10-dm.rules.in b/udev/10-dm.rules.in
index 2755530..46a6869 100644
--- a/udev/10-dm.rules.in
+++ b/udev/10-dm.rules.in
@@ -14,7 +14,7 @@
 #   DM_SUSPENDED - suspended state of DM device (0 or 1)
 #   DM_UDEV_RULES_VSN - DM udev rules version
 
-KERNEL=="device-mapper", NAME="(DM_DIR)/control"
+KERNEL=="device-mapper", NAME="(DM_DIR)/control", SYMLINK+="device-mapper"
 
 SUBSYSTEM!="block", GOTO="dm_end"
 KERNEL!="dm-[0-9]*", GOTO="dm_end"
-- 
2.6.6
openSUSE Build Service is sponsored by