Bug#324162: This bothered me too, patch included that does better filtering

Stuart Freeman stuartf at uga.edu
Wed Feb 15 19:38:00 UTC 2006


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
----------------------------------------------




More information about the pkg-lvm-maintainers mailing list