]> git.ipfire.org Git - thirdparty/mdadm.git/commit
udev-md-raid-assembly.rules: Skip non-ready devices
authorHannes Reinecke <hare@suse.de>
Mon, 27 Mar 2017 00:15:44 +0000 (11:15 +1100)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Tue, 28 Mar 2017 18:22:32 +0000 (14:22 -0400)
commit3a77acd7170199adc690332ded37c41f067c720e
tree4b1d9a1068f7cfe3ffca1a25a2ffe8c67f2dd785
parent4c829c2252d2a6fb4871ec0cdad58b6c3a0218fd
udev-md-raid-assembly.rules: Skip non-ready devices

If a device isn't fully initialized (e.g if it should be
handled by multipathing) it should not be considered for
md/RAID auto-assembly.  Doing so can cause incorrect results
such as causing multipath to fail during startup.

There is a convention that the udev environment variable
SYSTEMD_READY be set to zero for such devices.  So change
the mdadm rules to ignore devices with SYSTEMD_READY==0.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
udev-md-raid-assembly.rules