From: Jeremy Katz Date: Mon, 5 Jan 2009 17:46:39 +0000 (-0500) Subject: Stop depending on nash to find the program interpreter; use eu-readelf instead X-Git-Tag: 0.1~492 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d666d610ad35fab8c71033d6b3ee4904e1f7bc5;p=thirdparty%2Fdracut.git Stop depending on nash to find the program interpreter; use eu-readelf instead --- diff --git a/dracut-functions b/dracut-functions index 89914f84f..6c3e03405 100755 --- a/dracut-functions +++ b/dracut-functions @@ -36,7 +36,7 @@ function get_dso_deps() { declare -a FILES declare -a NAMES - local LDSO=$(echo nash-showelfinterp $bin | /sbin/nash --forcequiet) + local LDSO=$(LANG=C eu-readelf -l $bin |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" diff --git a/dracut.spec b/dracut.spec index ed3fcbfbe..c1a1cf9e5 100644 --- a/dracut.spec +++ b/dracut.spec @@ -22,6 +22,7 @@ Requires: mount Requires: nash Requires: bash Requires: plymouth >= 0.6.0-2 +Requires: /usr/bin/eu-readelf Obsoletes: mkinitrd < 7.0 Provides: mkinitrd = 7.0 BuildArch: noarch