--- a/defaults/initrd.scripts 2013-02-17 02:43:59.569540782 +0100 +++ a/defaults/initrd.scripts 2013-02-17 02:44:19.062872389 +0100 @@ -672,17 +672,17 @@ if [ "${USE_LVM_NORMAL}" = '1' ] then - if [ -e '/bin/lvm' ] + if [ -e '/sbin/lvm' ] then for dev in ${RAID_DEVICES} do setup_md_device "${dev}" done - # This is needed for /bin/lvm to accept the following logic - lvm_commands="#! /bin/lvm" + # This is needed for /sbin/lvm to accept the following logic + lvm_commands="#! /sbin/lvm" - # If there is a cahe, update it. Unbreak at least dmcrypt + # If there is a cache, update it. Unbreak at least dmcrypt [ -d /etc/lvm/cache ] && lvm_commands="${lvm_commands} \nvgscan" # To activate volumegroups on all devices in the cache @@ -695,7 +695,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 2013-02-17 02:43:59.586207448 +0100 +++ a/gen_initramfs.sh 2013-02-17 02:44:19.062872389 +0100 @@ -301,11 +301,12 @@ fi cd ${TEMP} mkdir -p "${TEMP}/initramfs-lvm-temp/bin/" + mkdir -p "${TEMP}/initramfs-lvm-temp/sbin/" mkdir -p "${TEMP}/initramfs-lvm-temp/etc/lvm/" if false && [ -e '/sbin/lvm.static' ] then print_info 1 ' LVM: Adding support (using local static binary /sbin/lvm.static)...' - cp /sbin/lvm.static "${TEMP}/initramfs-lvm-temp/bin/lvm" || + cp /sbin/lvm.static "${TEMP}/initramfs-lvm-temp/sbin/lvm" || gen_die 'Could not copy over lvm!' # See bug 382555 if [ -e '/sbin/dmsetup.static' ] @@ -315,7 +316,7 @@ elif false && [ -e '/sbin/lvm' ] && LC_ALL="C" ldd /sbin/lvm|grep -q 'not a dynamic executable' then print_info 1 ' LVM: Adding support (using local static binary /sbin/lvm)...' - cp /sbin/lvm "${TEMP}/initramfs-lvm-temp/bin/lvm" || + cp /sbin/lvm "${TEMP}/initramfs-lvm-temp/sbin/lvm" || gen_die 'Could not copy over lvm!' # See bug 382555 if [ -e '/sbin/dmsetup' ] && LC_ALL="C" ldd /sbin/dmsetup | grep -q 'not a dynamic executable' @@ -327,7 +328,7 @@ 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 || + mv ${TEMP}/initramfs-lvm-temp/sbin/lvm.static ${TEMP}/initramfs-lvm-temp/sbin/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 ||