059e59
From bf521a1e968472b74288046830bd2c85e3cbb023 Mon Sep 17 00:00:00 2001
059e59
From: David Teigland <teigland@redhat.com>
059e59
Date: Wed, 8 Dec 2021 14:14:27 -0600
059e59
Subject: [PATCH] fix(lvm): replace --partial option
059e59
059e59
The --partial option will activate a linear (or other) LV
059e59
without segments for missing devices, which is unlikely to
059e59
be useful. The intention was to activate raid LVs in a useful
059e59
form while missing devices, which is specified with the option
059e59
--activationmode degraded.
059e59
059e59
(cherry picked from commit 97543cca48dfde849396f11c83f9c320e1b91c46)
059e59
059e59
Resolves: #2037955
059e59
---
059e59
 modules.d/90lvm/64-lvm.rules | 2 +-
059e59
 1 file changed, 1 insertion(+), 1 deletion(-)
059e59
059e59
diff --git a/modules.d/90lvm/64-lvm.rules b/modules.d/90lvm/64-lvm.rules
059e59
index 65f65249..ca718ce0 100644
059e59
--- a/modules.d/90lvm/64-lvm.rules
059e59
+++ b/modules.d/90lvm/64-lvm.rules
059e59
@@ -15,7 +15,7 @@ PROGRAM=="/bin/sh -c 'for i in $sys/$devpath/holders/dm-[0-9]*; do [ -e $$i ] &&
059e59
     GOTO="lvm_end"
059e59
 
059e59
 RUN+="/sbin/initqueue --settled --onetime --unique /sbin/lvm_scan"
059e59
-RUN+="/sbin/initqueue --timeout --name 51-lvm_scan --onetime --unique /sbin/lvm_scan --partial"
059e59
+RUN+="/sbin/initqueue --timeout --name 51-lvm_scan --onetime --unique /sbin/lvm_scan --activationmode degraded"
059e59
 RUN+="/bin/sh -c '>/tmp/.lvm_scan-%k;'"
059e59
 
059e59
 LABEL="lvm_end"
059e59