# 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.
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
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
# 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
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' ]
# 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.$$