]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(lvm): replace --partial option
authorDavid Teigland <teigland@redhat.com>
Wed, 8 Dec 2021 20:14:27 +0000 (14:14 -0600)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Wed, 2 Feb 2022 22:48:13 +0000 (22:48 +0000)
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

index 65f65249dc978b13a205b5e427affd23a6317ca7..ca718ce0276a4c33187ac4298c92e7638ab61f25 100644 (file)
@@ -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"