]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Clean up noise from eu-readelf
authorJeremy Katz <katzj@redhat.com>
Mon, 5 Jan 2009 20:42:56 +0000 (15:42 -0500)
committerJeremy Katz <katzj@redhat.com>
Mon, 5 Jan 2009 20:42:56 +0000 (15:42 -0500)
dracut-functions

index 2e9250f9b742917f33eba6d52e215ba0b27549bf..2ac8c4710a796fc540ffca6ca7e6f3054dfc72c4 100755 (executable)
@@ -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"