diff -urN genkernel-3.4.7.orig/gen_initramfs.sh genkernel-3.4.7/gen_initramfs.sh --- genkernel-3.4.7.orig/gen_initramfs.sh 2007-04-05 10:31:24.000000000 -0400 +++ genkernel-3.4.7/gen_initramfs.sh 2007-04-06 13:00:28.000000000 -0400 @@ -208,7 +208,7 @@ cd ${TEMP} mkdir -p "${TEMP}/initramfs-lvm2-temp/bin/" mkdir -p "${TEMP}/initramfs-lvm2-temp/etc/lvm/" - if [ -e '/sbin/lvm' ] && ldd /sbin/lvm|grep -q 'not a dynamic executable' + if [ -e '/sbin/lvm' ] && LC_ALL="C" ldd /sbin/lvm|grep -q 'not a dynamic executable' then print_info 1 ' LVM2: Adding support (using local static binaries)...' cp /sbin/lvm "${TEMP}/initramfs-lvm2-temp/bin/lvm" || @@ -223,15 +223,15 @@ fi if [ -x /sbin/lvm ] then - lvm dumpconfig 2>&1 > /dev/null || gen_die 'Could not copy over lvm.conf!' - ret=$? - if [ ${ret} != 0 ] - then +# lvm dumpconfig 2>&1 > /dev/null || gen_die 'Could not copy over lvm.conf!' +# ret=$? +# if [ ${ret} != 0 ] +# then cp /etc/lvm/lvm.conf "${TEMP}/initramfs-lvm2-temp/etc/lvm/" || gen_die 'Could not copy over lvm.conf!' - else - gen_die 'Could not copy over lvm.conf!' - fi +# else +# gen_die 'Could not copy over lvm.conf!' +# fi fi cd "${TEMP}/initramfs-lvm2-temp/" find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" diff -urN genkernel-3.4.7.orig/gen_initrd.sh genkernel-3.4.7/gen_initrd.sh --- genkernel-3.4.7.orig/gen_initrd.sh 2007-04-05 10:31:23.000000000 -0400 +++ genkernel-3.4.7/gen_initrd.sh 2007-04-06 13:00:33.000000000 -0400 @@ -168,7 +168,7 @@ # LVM2 if [ "${LVM2}" = '1' ] then - if [ -e '/sbin/lvm' ] && ldd /sbin/lvm|grep -q 'not a dynamic executable'; + if [ -e '/sbin/lvm' ] && LC_ALL="C" ldd /sbin/lvm|grep -q 'not a dynamic executable'; then print_info 1 'LVM2: Adding support (using local static binaries)...' cp /sbin/lvm "${TEMP}/initrd-temp/bin/lvm" || @@ -189,15 +189,15 @@ mkdir -p ${TEMP}/initrd-temp/etc/lvm if [ -x /sbin/lvm ] then - lvm dumpconfig 2>&1 > /dev/null || gen_die 'Could not copy over lvm.conf!' - ret=$? - if [ ${ret} != 0 ] - then +# lvm dumpconfig 2>&1 > /dev/null || gen_die 'Could not copy over lvm.conf!' +# ret=$? +# if [ ${ret} != 0 ] +# then cp /etc/lvm/lvm.conf "${TEMP}/initramfs-lvm2-temp/etc/lvm/" || gen_die 'Could not copy over lvm.conf!' - else - gen_die 'Could not copy over lvm.conf!' - fi +# else +# gen_die 'Could not copy over lvm.conf!' +# fi fi fi