--- a/defaults/initrd.scripts 2012-07-30 19:34:40.684908568 +0300 +++ a/defaults/initrd.scripts 2012-07-30 19:35:29.245913356 +0300 @@ -632,7 +632,7 @@ if [ "${USE_LVM_NORMAL}" = '1' ] then - if [ -e '/bin/lvm' ] + if [ -e '/sbin/lvm' ] then for dev in ${RAID_DEVICES} do @@ -640,7 +640,7 @@ done # This is needed for /bin/lvm to accept the following logic - lvm_commands="#! /bin/lvm" + lvm_commands="#! /sbin/lvm" # If there is a cahe, update it. Unbreak at least dmcrypt [ -d /etc/lvm/cache ] && lvm_commands="${lvm_commands} \nvgscan" @@ -655,7 +655,7 @@ # And finally execute it all (/proc/... needed if lvm is compiled without readline) good_msg "Scanning for and activating Volume Groups" - printf "%b\n" "${lvm_commands}" | /bin/lvm /proc/self/fd/0 + printf "%b\n" "${lvm_commands}" | /sbin/lvm /proc/self/fd/0 else bad_msg "vgscan or vgchange not found: skipping LVM volume group activation!" fi --- a/gen_initramfs.sh 2012-07-28 02:18:17.000000000 +0300 +++ a/gen_initramfs.sh 2012-07-30 19:35:29.245913356 +0300 @@ -306,12 +306,12 @@ compile_lvm /bin/tar -jxpf "${LVM_BINCACHE}" -C "${TEMP}/initramfs-lvm-temp" || gen_die "Could not extract lvm binary cache!"; - mv ${TEMP}/initramfs-lvm-temp/sbin/lvm.static ${TEMP}/initramfs-lvm-temp/bin/lvm || - gen_die 'LVM error: Could not move lvm.static to lvm!' # See bug 382555 mv ${TEMP}/initramfs-lvm-temp/sbin/dmsetup.static ${TEMP}/initramfs-lvm-temp/bin/dmsetup || gen_die 'LVM error: Could not move dmsetup.static to dmsetup!' rm -rf ${TEMP}/initramfs-lvm-temp/{lib,share,man,include,sbin/{lvm,dmsetup}} + mv ${TEMP}/initramfs-lvm-temp/sbin/lvm{.static,} || + gen_die 'LVM error: Could not move lvm.static to lvm!' fi if [ -x /sbin/lvm -o -x /bin/lvm ] then