dracut-functions.sh: instmods() print only filename instead of fullpath
authorHarald Hoyer <harald@redhat.com>
Sat, 25 Feb 2012 15:10:07 +0000 (16:10 +0100)
committerHarald Hoyer <harald@redhat.com>
Sat, 25 Feb 2012 16:09:14 +0000 (17:09 +0100)
do not print the full path, when we use "find" for kernel modules, but
rather only the filename.

dracut-functions.sh

index bd3203d..80714aa 100755 (executable)
@@ -1109,7 +1109,7 @@ instmods() {
                     | instmods
                 else
                     ( [[ "$_mpargs" ]] && echo $_mpargs
-                      find "$srcmods" -path "*/${_mod#=}/*" ) \
+                      find "$srcmods" -path "*/${_mod#=}/*" -printf '%f\n' ) \
                     | instmods
                 fi
                 ;;