Blame SOURCES/lvm2-2_03_10-Fix-scripts-lvmlocks.service.in-using-nonexistent-lock-opt-autowait.patch

18db87
From 48105f492f7f8c157ba714217ae55c6fb50e76c0 Mon Sep 17 00:00:00 2001
18db87
From: Maxim Plotnikov <wgh@torlan.ru>
18db87
Date: Wed, 22 Apr 2020 00:16:29 +0300
18db87
Subject: [PATCH] Fix scripts/lvmlocks.service.in using nonexistent --lock-opt
18db87
 autowait
18db87
18db87
The --lock-opt autowait was dropped back in 9ab6bdce01,
18db87
and attempting to specify it has quite an opposite effect:
18db87
no waiting is done, which makes the unit almost useless.
18db87
18db87
(cherry picked from commit a509776588a5c0c0bfc2394e4d1ed717531b0257)
18db87
---
18db87
 scripts/lvmlocks.service.in | 2 +-
18db87
 1 file changed, 1 insertion(+), 1 deletion(-)
18db87
18db87
diff --git a/scripts/lvmlocks.service.in b/scripts/lvmlocks.service.in
18db87
index f6a951f..a3d0bd4 100644
18db87
--- a/scripts/lvmlocks.service.in
18db87
+++ b/scripts/lvmlocks.service.in
18db87
@@ -8,7 +8,7 @@ Type=oneshot
18db87
 RemainAfterExit=yes
18db87
 
18db87
 # start lockspaces and wait for them to finish starting
18db87
-ExecStart=@SBINDIR@/lvm vgchange --lock-start --lock-opt autowait
18db87
+ExecStart=@SBINDIR@/lvm vgchange --lock-start --lock-opt auto
18db87
 
18db87
 # stop lockspaces and wait for them to finish stopping
18db87
 ExecStop=@SBINDIR@/lvmlockctl --stop-lockspaces --wait 1
18db87
-- 
18db87
1.8.3.1
18db87