]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
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 08c0c740c1c41a16bc3cdb3d748185c9825e13fe..92e3301aaf3ab923bd80a1c3fc469b2dc24c2324 100755 (executable)
@@ -18,4 +18,4 @@ else
   instmods $drivers
 fi
 
-
+instmods scsi_wait_scan
index 14505edc6070b9957ce884756e649bd1810e87b2..04990a84c4494aeb17cacb60f499ffa524a0d102 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 08ca8f0c7a66b1167403e3b5ebae9ead4622fcf2..f2c1c2b3740208b2fa60b909c2ea738a3b7b10af 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" || :)