From: Victor Lowther Date: Fri, 13 Feb 2009 12:43:21 +0000 (-0800) Subject: [PATCH 46/50] fixed library-matching regex X-Git-Tag: 0.1~432 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bff8c33c2bb17a7641ce664c5435f35956dbd02f;p=thirdparty%2Fdracut.git [PATCH 46/50] fixed library-matching regex Forgot about /lib64 --- diff --git a/dracut-functions b/dracut-functions index e80d786a0..a0a1906b1 100755 --- a/dracut-functions +++ b/dracut-functions @@ -68,7 +68,7 @@ inst_binary() { [[ -f $initdir$target ]] && return 0 # I love bash! while read line; do - [[ $line =~ '([^ ]*/lib/[^ ]*\.so[^ ]*|not found)' ]] || continue + [[ $line =~ '([^ ]*/lib[^/]*/[^ ]*\.so[^ ]*|not found)' ]] || continue FILE=${BASH_REMATCH[1]} [[ $FILE = 'not found' ]] && { echo "Missing a shared library required by $bin." >&2