base/init: add scsi_wait_scan to wait for host adapter scans
authorHarald Hoyer <harald@redhat.com>
Wed, 9 Sep 2009 09:02:41 +0000 (11:02 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 9 Sep 2009 09:09:04 +0000 (11:09 +0200)
modules.d/90kernel-modules/installkernel
modules.d/99base/init
modules.d/99base/install

index 08c0c74..92e3301 100755 (executable)
@@ -18,4 +18,4 @@ else
   instmods $drivers
 fi
 
-
+instmods scsi_wait_scan
index 14505ed..04990a8 100755 (executable)
@@ -138,6 +138,11 @@ while :; do
     [ -n "$queuetriggered" ] && continue
 
     if $UDEV_QUEUE_EMPTY >/dev/null 2>&1; then
+
+        modprobe scsi_wait_scan && rmmod scsi_wait_scan
+
+        $UDEV_QUEUE_EMPTY >/dev/null 2>&1 || continue
+
         unset queuetriggered
        for job in /initqueue-settled/*.sh; do
            [ -e "$job" ] || break
index 08ca8f0..f2c1c2b 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 dracut_install mount mknod mkdir modprobe pidof sleep chroot \
-    sed ls flock cp mv dmesg rm ln
+    sed ls flock cp mv dmesg rm ln rmmod
 if [ ! -e "${initdir}/bin/sh" ]; then
     dracut_install bash
     (ln -s bash "${initdir}/bin/sh" || :)