--- a/etc/init.d/lvm 2019-07-22 11:21:08.835441323 +0100 +++ b/etc/init.d/lvm 2019-07-22 11:28:16.474919117 +0100 @@ -116,9 +116,13 @@ #still echo stderr for debugging lvm_commands="#! ${lvm_path} --config '${config}'\n" # Extra PV find pass because some devices might not have been available until very recently - lvm_commands="${lvm_commands}lvchange --sysinit -a ln ${VGS}\n" + for VG in ${VGS} ; do + lvm_commands="${lvm_commands}lvchange --sysinit -a ln ${VG}\n" + done # Now make the nodes - lvm_commands="${lvm_commands}vgchange --sysinit -a ln ${VGS}\n" + for VG in ${VGS} ; do + lvm_commands="${lvm_commands}vgchange --sysinit -a ln ${VG}\n" + done # Order of this is important, have to work around dash and LVM readline printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null eend $? "Failed (possibly some LVs still needed for /usr or root)"