]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
mdamd-last-resort: add a Conflicts line to stop the timer.
authorNeilBrown <neilb@suse.de>
Thu, 12 Dec 2013 02:20:32 +0000 (13:20 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 12 Dec 2013 02:20:32 +0000 (13:20 +1100)
When the md device actually appears we want to stop the timer and not
bother with the mdadm-last-resort@.server.  In particular, running
that causes confusing messages and is in general best avoided.

Fortuantely this can simply be achieved with a Conflicts= line

Signed-off-by: NeilBrown <neilb@suse.de>
systemd/mdadm-last-resort@.timer

index 6a1cd56810004470bda090c7fa4f03239162c93a..52b3f227b05d47c49f862136f95472e47f1fd55f 100644 (file)
@@ -1,6 +1,7 @@
 [Unit]
 Description=Timer to wait for more drives before activating degraded array.
 DefaultDependencies=no
+Conflicts=sys-devices-virtual-block-%i.device
 
 [Timer]
 OnActiveSec=30