]> git.ipfire.org Git - thirdparty/mdadm.git/commit
udev-rules: prevent systemd from mount devices before they are ready.
authorHarald Hoyer <harald@redhat.com>
Sun, 12 Aug 2012 22:00:21 +0000 (08:00 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 12 Aug 2012 22:00:21 +0000 (08:00 +1000)
commit5b7e273aae7594369a1b3942c7d168c96c4768c0
treeef1be6eb6b807f65a77a9c87fe84d602dd6a5239
parentaa437afc1cec4c7b1692a6356d18c4bb98d1b6c1
udev-rules: prevent systemd from mount devices before they are ready.

In the "add" uevent, ATTR{md/array_state} does not exist, so the next
rule does not kick in.

When an array is assembled incrementally, systemd might see it
before it is ready, try to mount it, fail, and give up.
Result is that array doesn't get mounted.

If we ask udev to tell systemd that it isn't ready yet in this
case, systemd waits until it is ready, and all are happy.

Signed-off-by: NeilBrown <neilb@suse.de>
udev-md-raid.rules