Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > media > main-testing-src > by-pkgid > 73d4e64fc0a6e30c14426cc4c79b21e7 > files > 49

mkinitrd-6.0.93-6.3mnb2.src.rpm

From ccd760885232df882cfd57bc6887231deadb4bae Mon Sep 17 00:00:00 2001
From: unknown author <cooker@mandrivalinux.org>
Date: Mon, 15 Jun 2009 17:33:16 +0200
Subject: [PATCH] scsi_alias

---
 mkinitrd |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mkinitrd b/mkinitrd
index 4b422b2..c183e0d 100755
--- a/mkinitrd
+++ b/mkinitrd
@@ -1145,7 +1145,7 @@ if [ -z "$noscsi" -a "x$PROBE" == "xyes" ]; then
     fi
 
     if [ -f $modulefile ]; then
-        scsimodules=`grep "alias[[:space:]]\+scsi_hostadapter" $modulefile | grep -v '^[ 	]*#' | LC_ALL=C sort -u | awk '{ print $3 }'`
+        scsimodules=$(grep -E '^[[:space:]]*(alias|probeall|install)[[:space:]]+scsi_hostadapter' $modulefile | sed 's/^.*scsi_hostadapter//;s/\/sbin\/modprobe//g;s/;//g;s/\/bin\/true//;s/||//')
 
         if [ -n "$scsimodules" ]; then
             for n in $scsimodules; do
-- 
1.6.4.4