From: Jeremy Katz Date: Mon, 5 Jan 2009 20:42:56 +0000 (-0500) Subject: Clean up noise from eu-readelf X-Git-Tag: 0.1~487 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6eedcafc3700665b8fc58e093c4d81d3d124dbdf;p=thirdparty%2Fdracut.git Clean up noise from eu-readelf --- diff --git a/dracut-functions b/dracut-functions index 2e9250f9b..2ac8c4710 100755 --- a/dracut-functions +++ b/dracut-functions @@ -36,7 +36,7 @@ function get_dso_deps() { declare -a FILES declare -a NAMES - local LDSO=$(LANG=C eu-readelf -l $bin |grep interpreter |awk {'print $4;'} |sed -e 's/]$//') + local LDSO=$(LANG=C eu-readelf -l $bin 2>/dev/null |grep interpreter |awk {'print $4;'} |sed -e 's/]$//') [ -z "$LDSO" -o "$LDSO" == "$bin" ] && local LDSO="$IF_RTLD" [ -z "$LDSO" -o "$LDSO" == "$bin" ] && return 1 [ -z "$IF_RTLD" ] && IF_RTLD="$LDSO"