--- /etc/init.d/lvm-orig 2019-07-21 10:31:39.000000000 +0100 +++ /etc/init.d/lvm 2019-07-21 19:23:21.703032015 +0100 @@ -135,9 +135,13 @@ #still echo stderr for debugging lvm_commands="#!${lvm_path}\n" # Extra PV find pass because some devices might not have been available until very recently - lvm_commands="${lvm_commands}lvchange --config '${config}' --sysinit -a ln ${VGS}\n" + for VG in ${VGS} ; do + lvm_commands="${lvm_commands}lvchange --config '${config}' --sysinit -a ln ${VG}\n" + done # Now make the nodes - lvm_commands="${lvm_commands}vgchange --config '${config}' --sysinit -a ln ${VGS}\n" + for VG in ${VGS} ; do + lvm_commands="${lvm_commands}vgchange --config '${config}' --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 rc=$?