]> git.pld-linux.org Git - packages/geninitrd.git/commitdiff
- force sync scan for scsi_mod, hack not needed
authorhawk <hawk@pld-linux.org>
Thu, 25 Feb 2010 13:18:14 +0000 (13:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    geninitrd-scsi_sync_scan.patch -> 1.1

geninitrd-scsi_sync_scan.patch [new file with mode: 0644]

diff --git a/geninitrd-scsi_sync_scan.patch b/geninitrd-scsi_sync_scan.patch
new file mode 100644 (file)
index 0000000..6341698
--- /dev/null
@@ -0,0 +1,24 @@
+--- geninitrd.orig     2010-02-25 14:06:27.000000000 +0100
++++ geninitrd  2010-02-25 14:16:02.133902997 +0100
+@@ -618,6 +618,10 @@
+               local usleep=$(eval echo \$MODULE_${genericname}_USLEEP)
+               local firmware=$(eval echo \$MODULE_${genericname}_FIRMWARE)
++              if [ "$module" = "scsi_mod" ]; then
++                      options="scan=sync $options"
++              fi
++
+               if [ -n "$verbose" ]; then
+                       s=""
+                       if [ "$options" ]; then
+@@ -648,10 +652,6 @@
+                       if [ "$(busybox_applet rmmod 2>/dev/null; echo $?)" = 0 ]; then
+                               echo "rmmod scsi_wait_scan" | add_linuxrc
+                       fi
+-                      # HACK HACK HACK until we get proper solution like waiting untill rootfs device appears
+-                      if [ -z "$usleep" -a "$kernel_version_long" -ge "002006030" ]; then
+-                              echo "usleep 15000000" | add_linuxrc
+-                      fi
+               fi
+       done
This page took 0.042402 seconds and 4 git commands to generate.