Here's how I addressed this issue:

--- lvm2create_initrd   2006-02-15 14:30:28.000000000 -0500
+++ src/lvm2create_initrd       2006-02-15 14:31:31.000000000 -0500
@@ -269,7 +269,7 @@
 # Figure out which shared libraries we actually need in our initrd
 echo "$cmd -- finding required shared libraries"
 verbose "BINFILES: `echo $BINFILES`"
-LIBFILES=`ldd $BINFILES 2>/dev/null | awk '{if (/=>/) { print $3 }}' | sort -u`
+LIBFILES=`ldd $BINFILES 2>/dev/null | awk '{if (/=>/ && NF == 4) { print $3 } 
else {print $1}}'| grep -v 'linux-gate\.so' | sort -u`
 if [ $? -ne 0 ]; then
    echo "$cmd -- ERROR figuring out needed shared libraries"
    exit 1

-- 
----------------------------------------------
D. Stuart Freeman
UGA Enterprise Information Technology Services
Core Services Support
-
Unix is a Registered Bell of AT&T Trademark Laboratories.
                -- Donn Seeley
----------------------------------------------

Reply via email to