chiark / gitweb /
units: dm is an awful piece of work
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Jul 2010 00:17:06 +0000 (02:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 Jul 2010 00:17:06 +0000 (02:17 +0200)
src/99-systemd.rules

index 003796e5908f3ecbafba3d17b724140e12ba1ff7..f7d99157f2fe3f7d3125ee67ad808a27ed1c015c 100644 (file)
@@ -12,6 +12,10 @@ KERNEL=="ttyS*", TAG="systemd"
 
 SUBSYSTEM=="block", TAG="systemd"
 
+# DM finds it funny to create additional device nodes, we need to
+merge them here, so that we recognize identical devices.
+SUBSYSTEM=="block", ENV{DM_NAME}!="", ENV{SYSTEMD_ALIAS}="/dev/mapper/$env{DM_NAME}"
+
 # We need a hardware independent way to identify network devices. We
 # use the /sys/subsystem path for this. Current vanilla kernels don't
 # actually support that hierarchy right now, however upcoming kernels