Added a non-braindead version of a patch provided by Fabio Erculiani <lxnay@lxnaydesi...
authorChris Gianelloni <wolf31o2@gentoo.org>
Mon, 12 Feb 2007 21:28:55 +0000 (21:28 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Mon, 12 Feb 2007 21:28:55 +0000 (21:28 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@486 67a159dc-881f-0410-a524-ba9dfbe2cb84

ChangeLog
generic/initrd.scripts
generic/linuxrc
genkernel

index 511f96a2fa0772c5ba276e1940989e2d9fbc1406..4e3fa6a2f741524de39fc2cf2dcc5300e22988ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,12 @@
 # Copyright 2006-2007 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  12 Feb 2007; Chris Gianelloni <wolf31o2@gentoo.org>
+  generic/initrd.scripts, generic/linuxrc, genkernel:
+  Added a non-braindead version of a patch provided by Fabio Erculiani
+  <lxnay@lxnaydesign.net> in bug #160333. This is completely untested, so I'm
+  rolling up 3.4.7_pre2 to get it tested prior to genkernel 3.4.7 going final.
+
   12 Feb 2007; Chris Gianelloni <wolf31o2@gentoo.org> ppc/Pegasos:
   Add a known-working 2.6.16+ kernel config from
   http://www.ppczone.org/downloads/config-2.6.16-pegasos for bug #165758.
index 0e194475dfaecbfbcc514eb000ee0f9653650371..077d39673d7dd1504a23f6288a05141555539558 100644 (file)
@@ -321,14 +321,26 @@ start_dev_mgr() {
 
        if [ "${USE_UDEV_NORMAL}" -eq '1' ]
        then
-               cd /sys
-               [ "${DO_slowusb}" ] && sleep 10
+               for dir in /sys/bus/usb/drivers/usb-storage/*
+               do
+                       if [ -d "${dir}" ]
+                       then
+                               FORCE_slowusb="1"
+                       fi
+               done
+               if [ "${DO_slowusb}" ] || [ "${FORCE_slowusb}" ]
+               then
+                       sleep 10
+               fi
+
                kill_devfsd
                good_msg 'Activating mdev'
-#              runUdev
                runmdev
-               [ "${DO_slowusb}" ] && sleep 20
-               cd /
+
+               if [ "${DO_slowusb}" ] || [ "${FORCE_slowusb}" ]
+               then
+                       sleep 10
+               fi
        else
                good_msg 'Activating devfs'
                mount -t devfs devfs /dev 2>/dev/null
index 7b370facfd9983bf0901bc46e5b374fe1e5fc8ac..019b4032f004a593cfba490e25b3feff25e14d20 100644 (file)
@@ -625,7 +625,10 @@ then
                        fi
                done
 
-               [ "${DO_slowusb}" ] && sleep 10
+               if [ "${DO_slowusb}" ] || [ "${FORCE_slowusb}" ]
+               then
+                       sleep 10
+               fi
                mkdir initrd proc tmp sys 2>/dev/null
                chmod 1777 tmp
        fi
@@ -640,7 +643,10 @@ then
        # Let Init scripts know that we booted from CD
        export CDBOOT
        CDBOOT=1
-       [ "${DO_slowusb}" ] && sleep 10
+       if [ "${DO_slowusb}" ] || [ "${FORCE_slowusb}" ]
+       then
+               sleep 10
+       fi
 else
        if [ "${USE_UNIONFS_NORMAL}" -eq '1' ]
        then
@@ -678,7 +684,10 @@ then
        cd ${CHROOT}
        mkdir ${CHROOT}/proc ${CHROOT}/sys 2>/dev/null
        pivot_root . tmp/.initrd
-       [ "${DO_slowusb}" ] && sleep 10
+       if [ "${DO_slowusb}" ] || [ "${FORCE_slowusb}" ]
+       then
+               sleep 10
+       fi
        echo -n '.'
 
        if /tmp/.initrd/bin/[ "${USE_DEVFS_NORMAL}" -eq '1' -a "${CDROOT}" -eq '0' ]
index 54247fdb7a6a424508304175adb69b6fd0637902..890cb25c143415d5493aa800d8e1784fa729ab27 100755 (executable)
--- a/genkernel
+++ b/genkernel
@@ -2,7 +2,7 @@
 # Genkernel v3
 
 PATH="/bin:/usr/bin:/sbin:/usr/sbin"
-GK_V='3.4.7_pre1'
+GK_V='3.4.7_pre2'
 
 TMPDIR='/var/tmp/genkernel'
 TEMP=${TMPDIR}/$RANDOM.$RANDOM.$RANDOM.$$