Author: arekm
Date: Thu Sep 17 10:23:19 2009
New Revision: 10613

Modified:
   geninitrd/trunk/geninitrd
Log:
Ugly hack for kernels >= 2.6.30. It will make your boot slower in many cases 
but we don't have proper solution yet (and the solution is probably waiting for 
uevent with information that rootfs device is available).

Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd   (original)
+++ geninitrd/trunk/geninitrd   Thu Sep 17 10:23:19 2009
@@ -651,6 +651,10 @@
                        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 "$sleep_var" -a "$kernel_version_long" -ge 
"002006030" ]; then
+                               echo "usleep 15000000" | add_linuxrc
+                       fi
                fi
 
        done
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to