From: Harald Hoyer Date: Sat, 25 Feb 2012 15:10:07 +0000 (+0100) Subject: dracut-functions.sh: instmods() print only filename instead of fullpath X-Git-Tag: 018~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=334cc2832770b71e5e6b6f245e5a24cced8eaac6;p=thirdparty%2Fdracut.git dracut-functions.sh: instmods() print only filename instead of fullpath do not print the full path, when we use "find" for kernel modules, but rather only the filename. --- diff --git a/dracut-functions.sh b/dracut-functions.sh index bd3203d31..80714aae5 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -1109,7 +1109,7 @@ instmods() { | instmods else ( [[ "$_mpargs" ]] && echo $_mpargs - find "$srcmods" -path "*/${_mod#=}/*" ) \ + find "$srcmods" -path "*/${_mod#=}/*" -printf '%f\n' ) \ | instmods fi ;;