dracut/0007-dracut-functions.sh-instmods-print-only-filename-ins.patch
Harald Hoyer 66318bb058 update to latest git
- fixes for convertfs (/usr-move)
2012-02-29 13:24:44 +01:00

26 lines
922 B
Diff

From 334cc2832770b71e5e6b6f245e5a24cced8eaac6 Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Sat, 25 Feb 2012 16:10:07 +0100
Subject: [PATCH] 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.
---
dracut-functions.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dracut-functions.sh b/dracut-functions.sh
index bd3203d..80714aa 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
;;