From b7342a71959fabd606404ca8ca860398b3d4cc9e Mon Sep 17 00:00:00 2001
From: Warren Togami <wtogami@xxxxxxxxxx>
Date: Fri, 30 Nov 2007 14:13:32 -0500
Subject: [PATCH] Correct the replace regex when $MODULE omits the
trailing .ko or .o, so dm-zero does not become dm-ze
---
mkinitrd | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mkinitrd b/mkinitrd
index e2ebd2f..01094dd 100755
--- a/mkinitrd
+++ b/mkinitrd
@@ -1613,7 +1613,7 @@ fi
usb_mounted="prep"
for MODULE in $MODULES; do
text=""
- module=`echo $MODULE | sed -e "s|.*/||" -e "s/.k\?o$//"`
+ module=`echo $MODULE | sed -e "s|.*/||" -e "s/\.k\?o$//"`
fullmodule=`echo $MODULE | sed "s|.*/||"`
options=`sed -n -e ':a' -e '/\\\\$/N; s/\\\\\n//; ta' -e
"s/^options[ ][ ]*$module[ ][ ]*//p" $modulefile 2>/dev/null`
--
1.5.3.4
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list