File sysconfig-udevmountd-don-t-handle-crypto-devices.bnc568577.diff of Package sysconfig

From 661a4dcaeb55c41adffcf47f604585fc6e329fcf Mon Sep 17 00:00:00 2001
From: Ludwig Nussel <ludwig.nussel@suse.de>
Date: Tue, 12 Jan 2010 16:29:33 +0100
Subject: [PATCH] udevmountd: don't handle crypto devices, boot.crypto does that already (bnc#569942)

---
 config/hardware/81-mount.rules |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/config/hardware/81-mount.rules b/config/hardware/81-mount.rules
index 345dace..d780ba8 100644
--- a/config/hardware/81-mount.rules
+++ b/config/hardware/81-mount.rules
@@ -3,6 +3,8 @@
 # Skip 'add' events for device-mapper
 ACTION=="add", SUBSYSTEM=="block", KERNEL=="dm-*", GOTO="skip_mount"
 ACTION=="add", SUBSYSTEM=="block", KERNEL=="md*", GOTO="skip_mount"
+# don't handle crypto devices, boot.crypto does that already (bnc#569942)
+ACTION=="change", SUBSYSTEM=="block", KERNEL=="dm-*", ENV{DM_TARGET_TYPES}=="crypt", GOTO="skip_mount"
 ACTION=="add", SUBSYSTEM=="block", ENV{FSTAB_OPTS}=="*nofail*", IMPORT="udevmountd"
 ACTION=="change", SUBSYSTEM=="block", KERNEL=="dm-*", ENV{FSTAB_OPTS}=="*nofail*", IMPORT="udevmountd"
 ACTION=="change", SUBSYSTEM=="block", KERNEL=="md*", ENV{FSTAB_OPTS}=="*nofail*", IMPORT="udevmountd"
-- 
1.6.4.2
openSUSE Build Service is sponsored by