[PATCH 1/2] dracut-functions: update inst_binary()
Michal Soltys <
soltys@...>
2011-05-10 12:36:23 GMT
This update adds support for sort-of corner case - when explicitly
specified binary (e.g. through dracut_install or inst) is a library
itself.
In such case, we would expect the binary to undergo typical
library-related handling (symlinks and such).
Apart from that, the patch cleans indenting and a few unused variables
in inst_binary() (probably leftovers from the past ?)
Signed-off-by: Michal Soltys <soltys@...>
---
dracut-functions | 31 +++++++++++++++++--------------
1 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/dracut-functions b/dracut-functions
index 41187e0..959c1d3 100755
--- a/dracut-functions
+++ b/dracut-functions
<at> <at> -32,9 +32,6 <at> <at> if ! type dinfo >/dev/null 2>&1; then
dlog_init
fi
-IF_RTLD=""
-IF_dynamic=""
-
# Generic substring function. If $2 is in $1, return 0.
strstr() { [[ $1 =~ $2 ]]; }
<at> <at> -330,14 +327,20 <at> <at> find_binary() {
(Continue reading)