summaryrefslogtreecommitdiff
path: root/src/99-systemd.rules
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-16 12:57:00 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-16 19:34:38 +0100
commit444d9432358c7ef8d1a85d330089b0027e740612 (patch)
treed6270ee1b82241338b50556f807213b08de2fd71 /src/99-systemd.rules
parent853856101be1c396afcb0ec1338774d62c863337 (diff)
udev: ignore block devices which no known contents, to avoid trying of mounts/swapons when devices aren't set up full yet
Diffstat (limited to 'src/99-systemd.rules')
-rw-r--r--src/99-systemd.rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/99-systemd.rules b/src/99-systemd.rules
index 5cdb9e0e9a..0ac6d0023f 100644
--- a/src/99-systemd.rules
+++ b/src/99-systemd.rules
@@ -7,12 +7,12 @@
ACTION!="add|change", GOTO="systemd_end"
-ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", ENV{SYSTEMD_READY}="0"
-
KERNEL=="tty[0-9]|tty1[0-2]", TAG+="systemd"
KERNEL=="ttyS*", 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"
+SUBSYSTEM=="block", KERNEL!="ram*|loop*", ENV{ID_PART_TABLE_TYPE}=="", ENV{ID_FS_USAGE}=="", ENV{SYSTEMD_READY}="0"
# We need a hardware independent way to identify network devices. We
# use the /sys/subsystem path for this. Current vanilla kernels don't