From 79d8213f29046c9b184f9cb4af87878f937e10a9 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Thu, 12 Dec 2013 13:20:32 +1100 Subject: [PATCH] mdamd-last-resort: add a Conflicts line to stop the timer. 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 --- systemd/mdadm-last-resort@.timer | 1 + 1 file changed, 1 insertion(+) diff --git a/systemd/mdadm-last-resort@.timer b/systemd/mdadm-last-resort@.timer index 6a1cd568..52b3f227 100644 --- a/systemd/mdadm-last-resort@.timer +++ b/systemd/mdadm-last-resort@.timer @@ -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 -- 2.39.2