[arch-projects] [MKINITCPIO][PATCH] Fix detection of not compressed modules
Function all_modules() doesn't correctly detect module extension. It's a one char removing patch. Signed-off-by: Sebastien Luttringer <seblu@seblu.net> --- functions | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/functions b/functions index 75ea0a0..4da4d4e 100644 --- a/functions +++ b/functions @@ -56,7 +56,7 @@ all_modules () while read -r -d '' mod; do (( ++count )) mod=${mod##*/} - mod="${mod%.ko.*}" + mod="${mod%.ko*}" printf '%s\n' "${mod//-/_}" done < <(find "$MODULEDIR" -name '*.ko*' -print0 2>/dev/null | grep -Zz "$@") -- Sebastien "Seblu" Luttringer
On Tue, Jun 14, 2011 at 12:32:22AM +0200, Sebastien Luttringer wrote:
Function all_modules() doesn't correctly detect module extension. It's a one char removing patch.
Signed-off-by: Sebastien Luttringer <seblu@seblu.net> --- functions | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/functions b/functions index 75ea0a0..4da4d4e 100644 --- a/functions +++ b/functions @@ -56,7 +56,7 @@ all_modules () while read -r -d '' mod; do (( ++count )) mod=${mod##*/} - mod="${mod%.ko.*}" + mod="${mod%.ko*}" printf '%s\n' "${mod//-/_}" done < <(find "$MODULEDIR" -name '*.ko*' -print0 2>/dev/null | grep -Zz "$@")
-- Sebastien "Seblu" Luttringer
Ack! And ACK. Thanks for the catch. d
participants (2)
-
Dave Reisner
-
Sebastien Luttringer