Skip to contentSkip to conversation

Fix scripts/lvmlocks.service.in using nonexistent --lock-opt autowait

PATCH New [email protected] 1 participant 1 message Apr 21, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix scripts/lvmlocks.service.in using nonexistent --lock-opt autowait

From: Maxim Plotnikov <[email protected]>

The --lock-opt autowait was dropped back in 9ab6bdce01, and attempting to specify it has quite an opposite effect:
no waiting is done, which makes the unit almost useless.

---
 scripts/lvmlocks.service.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lvmlocks.service.in +1 -1
index f6a951f19..a3d0bd48d 100644
@@ -8,7 +8,7 @@ Type=oneshot
 RemainAfterExit=yes
 
 # start lockspaces and wait for them to finish starting
-ExecStart=@SBINDIR@/lvm vgchange --lock-start --lock-opt autowait
+ExecStart=@SBINDIR@/lvm vgchange --lock-start --lock-opt auto
 
 # stop lockspaces and wait for them to finish stopping
 ExecStop=@SBINDIR@/lvmlockctl --stop-lockspaces --wait 1
Signature · 1 line
2.24.1