X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2F99-systemd.rules;h=6d4379ec9519a17ed96f07c2b03a40a9453e05c7;hp=70c0d8191a4b91f711a15264c16dc6ac11c2af67;hb=3dda9fc3a738241e42df43dbebf9e479e5ad1da8;hpb=e1ce2c2782015579f042d4d6963ed039333fb8c2 diff --git a/src/99-systemd.rules b/src/99-systemd.rules index 70c0d8191..6d4379ec9 100644 --- a/src/99-systemd.rules +++ b/src/99-systemd.rules @@ -10,7 +10,11 @@ ACTION!="add|change", GOTO="systemd_end" KERNEL=="tty[0-9]|tty1[0-2]", TAG="systemd" KERNEL=="ttyS*", TAG="systemd" -SUBSYSTEM=="block", TAG="systemd" +SUBSYSTEM=="block", KERNEL!="ram*|loop*", 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 @@ -24,5 +28,9 @@ SUBSYSTEM=="block", TAG="systemd" # http://git.kernel.org/?p=linux/hotplug/udev.git;a=blob;f=libudev/libudev-enumerate.c;h=da831449dcaf5e936a14409e8e68ab12d30a98e2;hb=HEAD#l742 SUBSYSTEM=="net", KERNEL!="lo", TAG="systemd", ENV{SYSTEMD_ALIAS}="/sys/subsystem/net/devices/%k" +SUBSYSTEM=="bluetooth", TAG="systemd", ENV{SYSTEMD_ALIAS}="/sys/subsystem/bluetooth/devices/%k" + +SUBSYSTEM=="bluetooth", TAG="systemd", ENV{SYSTEMD_WANTS}="bluetooth.target" +SUBSYSTEM=="printer", TAG="systemd", ENV{SYSTEMD_WANTS}="printer.target" LABEL="systemd_end"