From e717154ef2b400771ab8e0cf7c94d882ae9f917c Mon Sep 17 00:00:00 2001 From: Andrej Gelenberg Date: Sat, 26 May 2012 01:47:19 +0200 Subject: [PATCH] Fix persistent storage and systemd udev rules for device mapper 1. udev don't create /dev/disk/by-uuid/* and /dev/disk/by-lable/* for device mapper block devices, which break mount target for home on lvm. 2. systemd.rules set SYSTEMD_READY=0 for device mapper block devices, so the device service don't come up. Signed-off-by: Andrej Gelenberg --- rules/60-persistent-storage.rules | 3 --- rules/99-systemd.rules.in | 1 - 2 files changed, 0 insertions(+), 4 deletions(-) diff --git a/rules/60-persistent-storage.rules b/rules/60-persistent-storage.rules index b74821e..7568aef 100644 --- a/rules/60-persistent-storage.rules +++ b/rules/60-persistent-storage.rules @@ -13,9 +13,6 @@ ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_ SUBSYSTEM!="block", GOTO="persistent_storage_end" -# skip rules for inappropriate block devices -KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*|dm-*|md*", GOTO="persistent_storage_end" - # ignore partitions that span the entire disk TEST=="whole_disk", GOTO="persistent_storage_end" diff --git a/rules/99-systemd.rules.in b/rules/99-systemd.rules.in index c117529..d553ce8 100644 --- a/rules/99-systemd.rules.in +++ b/rules/99-systemd.rules.in @@ -12,7 +12,6 @@ SUBSYSTEM=="tty", KERNEL=="tty[a-zA-Z]*|hvc*|xvc*|hvsi*", TAG+="systemd" KERNEL=="vport*", TAG+="systemd" SUBSYSTEM=="block", KERNEL!="ram*|loop*", TAG+="systemd" -SUBSYSTEM=="block", KERNEL!="ram*|loop*", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", ENV{SYSTEMD_READY}="0" # Ignore encrypted devices with no identified superblock on it, since # we are probably still calling mke2fs or mkswap on it. -- 1.7.8.6