If our internal loop counter is bigger than half of the maximum
count, try to assemble lvm device partially with the "--partial"
option.
https://bugzilla.redhat.com/show_bug.cgi?id=723548
GOTO="lvm_end"
RUN+="/sbin/initqueue --settled --onetime --unique /sbin/lvm_scan"
+RUN+="/sbin/initqueue --timeout --onetime --unique /sbin/lvm_scan --partial"
RUN+="/bin/sh -c '>/tmp/.lvm_scan-%k;'"
LABEL="lvm_end"
# run lvm scan if udev has settled
+extraargs="$@"
type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
VGS=$(getargs rd.lvm.vg rd_LVM_VG=)
check_lvm_ver 2 2 57 $maj $min $sub && \
nopoll="--poll n"
-check_lvm_ver 2 2 65 $maj $min $sub && \
- sysinit=" --sysinit "
+if check_lvm_ver 2 2 65 $maj $min $sub; then
+ sysinit=" --sysinit $extraargs"
+fi
+
+unset extraargs
export LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES=1