]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions: install nosegneg libs additionally to standard ones
authorHarald Hoyer <harald@redhat.com>
Thu, 2 Feb 2012 17:25:49 +0000 (18:25 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 2 Feb 2012 17:25:49 +0000 (18:25 +0100)
dracut-functions

index e04b16de4f8781bfc5cd82acd536a20d8300be19..b6ac9acd35e1e82b07ef73063438fa4484be1e56 100755 (executable)
@@ -464,18 +464,16 @@ inst_binary() {
 
         # See if we are loading an optimized version of a shared lib.
         if [[ $_file =~ $_lib_regex ]]; then
-            _tlibdir=${BASH_REMATCH[1]}
-            _base=${_file##*/}
-            # Prefer nosegneg libs to unoptimized ones.
+           _tlibdir=${BASH_REMATCH[1]}
+           _base=${_file##*/}
+           # Prefer nosegneg libs to unoptimized ones.
             for _f in "$_tlibdir/i686/nosegneg" "$_tlibdir"; do
                 [[ -e $_f/$_base ]] || continue
-                _file=$_f/$_base
+                inst_library $_f/$_base
                 break
             done
-            inst_library "$_file" "$_tlibdir/$_base"
-        else
-            inst_library "$_file"
         fi
+        inst_library "$_file"
     done
 
     # Install the binary if it wasn't handled in the above loop.