From a91d9f003d0afca33cf89b83ba40ac161229852e Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 2 Apr 2009 10:14:39 -0400 Subject: Add a disk scan synchronization point with scsi_wait_scan. (#481470) We need to wait for scans to finish for mdadm & LVM to work (and heck, even fsck). Note that this won't necessarily fix USB, as it has an asyncrhonous delay even before it starts scanning. --- rc.d/rc.sysinit | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rc.d') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 9598a28d..b28a7c4e 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -337,6 +337,9 @@ sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1 update_boot_stage RChostname action $"Setting hostname ${HOSTNAME}: " hostname ${HOSTNAME} +# Sync waiting for storage. +rmmod scsi_wait_scan ; modprobe scsi_wait_scan ; rmmod scsi_wait_scan + # Start any MD RAID arrays that haven't been started yet [ -f /etc/mdadm.conf -a -x /sbin/mdadm ] && /sbin/mdadm -As --auto=yes --run -- cgit v1.2.1