aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gaffney <agaffney@gentoo.org>2009-07-12 11:31:57 -0500
committerAndrew Gaffney <agaffney@gentoo.org>2009-07-12 11:31:57 -0500
commit229d8ef4f123e481bccdb2edcd5297d52cdfb092 (patch)
tree870986997a4a421e384feefa73128719065bb1fe /gen_initramfs.sh
parentFix the header for the ChangeLog. Thanks, echangelog, for assuming I always ... (diff)
downloadgenkernel-229d8ef4f123e481bccdb2edcd5297d52cdfb092.tar.gz
genkernel-229d8ef4f123e481bccdb2edcd5297d52cdfb092.tar.bz2
genkernel-229d8ef4f123e481bccdb2edcd5297d52cdfb092.zip
Apply patch for Gentoo bug #276753 for new lvm.static binary
Diffstat (limited to 'gen_initramfs.sh')
-rwxr-xr-xgen_initramfs.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/gen_initramfs.sh b/gen_initramfs.sh
index 111b6cc..56e2be1 100755
--- a/gen_initramfs.sh
+++ b/gen_initramfs.sh
@@ -200,7 +200,12 @@ append_lvm(){
cd ${TEMP}
mkdir -p "${TEMP}/initramfs-lvm-temp/bin/"
mkdir -p "${TEMP}/initramfs-lvm-temp/etc/lvm/"
- if [ -e '/sbin/lvm' ] && LC_ALL="C" ldd /sbin/lvm|grep -q 'not a dynamic executable'
+ if [ -e '/sbin/lvm.static' ]
+ then
+ print_info 1 ' LVM: Adding support (using local static binaries)...'
+ cp /sbin/lvm.static "${TEMP}/initramfs-lvm-temp/bin/lvm" ||
+ gen_die 'Could not copy over lvm!'
+ elif [ -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 binaries)...'
cp /sbin/lvm "${TEMP}/initramfs-lvm-temp/bin/lvm" ||