diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-13 02:17:06 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-13 02:17:06 +0200 |
commit | 7c9c5d0eb1af19804c583fffdb95ca38049b204c (patch) | |
tree | 74acf8107b4c9a8150f72e47b68c4c1aa858fb54 /src | |
parent | da78e1b444924a7e10bdde6eeba8e6c818169a86 (diff) |
units: dm is an awful piece of work
Diffstat (limited to 'src')
-rw-r--r-- | src/99-systemd.rules | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/99-systemd.rules b/src/99-systemd.rules index 003796e590..f7d99157f2 100644 --- a/src/99-systemd.rules +++ b/src/99-systemd.rules @@ -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 |