summaryrefslogtreecommitdiff
path: root/backport-fix-lvm-replace-partial-option.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-19 03:22:19 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-19 03:22:19 +0000
commitbb2d27c6843d99793e50a67e20e64852c3dd4d85 (patch)
tree74f3f8647e43cc7f39873fb2ba713cebe9862c1d /backport-fix-lvm-replace-partial-option.patch
parentff3056a5eddb9b203fdd900eeecc0771d981d138 (diff)
automatic import of dracutopeneuler20.03
Diffstat (limited to 'backport-fix-lvm-replace-partial-option.patch')
-rw-r--r--backport-fix-lvm-replace-partial-option.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/backport-fix-lvm-replace-partial-option.patch b/backport-fix-lvm-replace-partial-option.patch
new file mode 100644
index 0000000..c1a687d
--- /dev/null
+++ b/backport-fix-lvm-replace-partial-option.patch
@@ -0,0 +1,30 @@
+From 97543cca48dfde849396f11c83f9c320e1b91c46 Mon Sep 17 00:00:00 2001
+From: David Teigland <teigland@redhat.com>
+Date: Wed, 8 Dec 2021 14:14:27 -0600
+Subject: [PATCH] fix(lvm): replace --partial option
+
+The --partial option will activate a linear (or other) LV
+without segments for missing devices, which is unlikely to
+be useful. The intention was to activate raid LVs in a useful
+form while missing devices, which is specified with the option
+--activationmode degraded.
+---
+ modules.d/90lvm/64-lvm.rules | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/modules.d/90lvm/64-lvm.rules b/modules.d/90lvm/64-lvm.rules
+index 65f6524..ca718ce 100644
+--- a/modules.d/90lvm/64-lvm.rules
++++ b/modules.d/90lvm/64-lvm.rules
+@@ -15,7 +15,7 @@ PROGRAM=="/bin/sh -c 'for i in $sys/$devpath/holders/dm-[0-9]*; do [ -e $$i ] &&
+ GOTO="lvm_end"
+
+ RUN+="/sbin/initqueue --settled --onetime --unique /sbin/lvm_scan"
+-RUN+="/sbin/initqueue --timeout --name 51-lvm_scan --onetime --unique /sbin/lvm_scan --partial"
++RUN+="/sbin/initqueue --timeout --name 51-lvm_scan --onetime --unique /sbin/lvm_scan --activationmode degraded"
+ RUN+="/bin/sh -c '>/tmp/.lvm_scan-%k;'"
+
+ LABEL="lvm_end"
+--
+1.8.3.1
+