Blame 0007-dracut-functions.sh-instmods-print-only-filename-ins.patch
|
Harald Hoyer |
66318b |
From 334cc2832770b71e5e6b6f245e5a24cced8eaac6 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
66318b |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
66318b |
Date: Sat, 25 Feb 2012 16:10:07 +0100
|
|
Harald Hoyer |
66318b |
Subject: [PATCH] dracut-functions.sh: instmods() print only filename instead
|
|
Harald Hoyer |
66318b |
of fullpath
|
|
Harald Hoyer |
66318b |
|
|
Harald Hoyer |
66318b |
do not print the full path, when we use "find" for kernel modules, but
|
|
Harald Hoyer |
66318b |
rather only the filename.
|
|
Harald Hoyer |
66318b |
---
|
|
Harald Hoyer |
66318b |
dracut-functions.sh | 2 +-
|
|
Harald Hoyer |
66318b |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
Harald Hoyer |
66318b |
|
|
Harald Hoyer |
66318b |
diff --git a/dracut-functions.sh b/dracut-functions.sh
|
|
Harald Hoyer |
66318b |
index bd3203d..80714aa 100755
|
|
Harald Hoyer |
66318b |
--- a/dracut-functions.sh
|
|
Harald Hoyer |
66318b |
+++ b/dracut-functions.sh
|
|
Harald Hoyer |
66318b |
@@ -1109,7 +1109,7 @@ instmods() {
|
|
Harald Hoyer |
66318b |
| instmods
|
|
Harald Hoyer |
66318b |
else
|
|
Harald Hoyer |
66318b |
( [[ "$_mpargs" ]] && echo $_mpargs
|
|
Harald Hoyer |
66318b |
- find "$srcmods" -path "*/${_mod#=}/*" ) \
|
|
Harald Hoyer |
66318b |
+ find "$srcmods" -path "*/${_mod#=}/*" -printf '%f\n' ) \
|
|
Harald Hoyer |
66318b |
| instmods
|
|
Harald Hoyer |
66318b |
fi
|
|
Harald Hoyer |
66318b |
;;
|