FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 12-03-2008, 09:20 PM
"pjones"
 
Default Use scsi_wait_scan on scsi devices instead of stabilized (#470628)

Get rid of wait_for_scsi entirely, and make anything with a scsi
modalias cause us to use the scsi_wait_scan kernel module.
---
mkinitrd | 27 ++-------------------------
1 files changed, 2 insertions(+), 25 deletions(-)

diff --git a/mkinitrd b/mkinitrd
index 39ed66f..8c599ce 100755
--- a/mkinitrd
+++ b/mkinitrd
@@ -66,7 +66,7 @@ ncryptoparts=0
ncryptolvs=0
ncryptoraids=0
root=""
-wait_for_scsi="no"
+scsi_wait_scan="no"

NET_LIST=""
LD_SO_CONF=/etc/ld.so.conf
@@ -138,7 +138,6 @@ resolve_device_name() {
echo nash-resolveDevice "$1" | /sbin/nash --forcequiet
}

-scsi_wait_scan="no"
findmodule() {
modlist=MODULES
subcmd="findmodule"
@@ -359,7 +358,7 @@ findstoragedriverinsys () {
if [ -f modalias ]; then
MODALIAS=$(cat modalias)
if [ "${modalias::7}" == "scsi:t-" ]; then
- wait_for_scsi=yes
+ scsi_wait_scan=yes
fi
moduledep $MODALIAS
unset MODALIAS
@@ -1507,31 +1506,9 @@ emitmodules() {
EOF
done
fi
- # some of these aren't modules any more, but that
- # generally makes them so much more likely to win
- # the race that we haven't seen cases where it matters
- # yet. Nevertheless:
- # XXX PJFIX: we need a better mechanism here.
- if [ 1 -eq 0
- -o "ahci" == "$module"
- -o "ata_piix" == "$module"
- -o "ibmvscsic" == "$module"
- -o "BusLogic" == "$module"
- -o "mptbase" == "$module"
- -o "pata_" == "${module::5}"
- -o "qla" == "${module::3}"
- -o "sata_" == "${module::5}"
- ]; then
- wait_for_scsi="yes"
- fi
done
- if [ "$wait_for_scsi" == "yes" ]; then
- emit "echo Waiting for driver initialization."
- emit "stabilized --hash --interval 250 /proc/scsi/scsi"
- fi
unset usb_mounted
unset found_hcd_module
- unset wait_for_scsi
}

if [ $ncryptodevs -ne 0 ]; then
--
1.6.0.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 09:50 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org