aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Wells <wellsie1116@gmail.com>2014-07-31 17:38:21 +0200
committerKay Sievers <kay@vrfy.org>2014-07-31 17:38:21 +0200
commitb5df2eabf3fdd3e1663bc4c948812472084f3e96 (patch)
tree1656d15a66d6438aa9b8eda1b3bf00c1b4a36a8a /rules/99-systemd.rules.in
parentresolved: fix multi-record packets with TXTs (diff)
downloadsystemd-b5df2eabf3fdd3e1663bc4c948812472084f3e96.tar.gz
systemd-b5df2eabf3fdd3e1663bc4c948812472084f3e96.tar.bz2
systemd-b5df2eabf3fdd3e1663bc4c948812472084f3e96.zip
rules: allow systemd to manage loop device partitions
SYSTEMD_READY is currently set to 0 for all loop devices (loop[0-9]*) that do not have a backing_file. Partitioned loop devices (ex. loop0p1), however, are matched by this rule and excluded by systemd even though they are active devices. This change adds an additional check to the rule, ensuring that only top level loop devices (loop[0-9]+$) are excluded from systemd.
Diffstat (limited to 'rules/99-systemd.rules.in')
-rw-r--r--rules/99-systemd.rules.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/99-systemd.rules.in b/rules/99-systemd.rules.in
index c3ef81b17..aa435c414 100644
--- a/rules/99-systemd.rules.in
+++ b/rules/99-systemd.rules.in
@@ -23,7 +23,7 @@ SUBSYSTEM=="block", ENV{DEVTYPE}=="disk", KERNEL=="md*", TEST!="md/array_state",
SUBSYSTEM=="block", ENV{DEVTYPE}=="disk", KERNEL=="md*", ATTR{md/array_state}=="|clear|inactive", ENV{SYSTEMD_READY}="0"
# Ignore loop devices that don't have any file attached
-SUBSYSTEM=="block", KERNEL=="loop[0-9]*", TEST!="loop/backing_file", ENV{SYSTEMD_READY}="0"
+SUBSYSTEM=="block", KERNEL=="loop[0-9]*", ENV{DEVTYPE}=="disk", TEST!="loop/backing_file", ENV{SYSTEMD_READY}="0"
# Ignore nbd devices in the "add" event, with "change" the nbd is ready
ACTION=="add", SUBSYSTEM=="block", KERNEL=="nbd*", ENV{SYSTEMD_READY}="0"