From: Thomas Lange Date: Thu, 14 Jun 2012 15:42:34 +0000 (+0200) Subject: Debian multiarch support X-Git-Tag: 020~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cacaa90c63512a068720d61d671ce3ddd1fbd81d;p=thirdparty%2Fdracut.git Debian multiarch support Hi Jon, here's the diff which works for me. The quotation marks around $@ do not work for me. Instead of "$@" I must to use $_dir/$@ (or "$_dir"/$@) but no quotation marks around $@. Could you please review my patch. --- diff --git a/dracut-functions.sh b/dracut-functions.sh index 6a72fcecf..38367b456 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -699,13 +699,13 @@ dracut_install() { # inst_libdir_file [-n ] [...] # Install a located on a lib directory to the initramfs image -# -n install non-matching files +# -n install matching files inst_libdir_file() { if [[ "$1" == "-n" ]]; then - local _pattern=$1 + local _pattern=$2 shift 2 for _dir in $libdirs; do - for _i in "$@"; do + for _i in $_dir/$@; do for _f in "$_dir"/$_i; do [[ "$_i" =~ $_pattern ]] || continue [[ -e "$_i" ]] && dracut_install "$_i" @@ -714,7 +714,7 @@ inst_libdir_file() { done else for _dir in $libdirs; do - for _i in "$@"; do + for _i in $_dir/$@; do for _f in "$_dir"/$_i; do [[ -e "$_f" ]] && dracut_install "$_f" done