[PATCH] anaconda-modprobe: fix .ko removal

Brian C. Lane bcl at redhat.com
Tue Aug 21 00:27:23 UTC 2012


From: "Brian C. Lane" <bcl at redhat.com>

---
 dracut/anaconda-modprobe.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dracut/anaconda-modprobe.sh b/dracut/anaconda-modprobe.sh
index 6a6b20d..f8ac2ca 100644
--- a/dracut/anaconda-modprobe.sh
+++ b/dracut/anaconda-modprobe.sh
@@ -14,7 +14,7 @@ for m in $SCSI_MODULES/*.ko; do
     # Shell spew to work around not having basename
     # Trim the paths off the prefix, then the . suffix
     a="${m##*/}"
-    MODULE_LIST+=" ${a%*.}"
+    MODULE_LIST+=" ${a%.*}"
 done
 
 if [ "$ARCH" != "s390" -a "$ARCH" != "s390x" ]; then
-- 
1.7.11.2



More information about the anaconda-patches mailing list