dobladecenter->slowusb

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@372 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Chris Gianelloni 19 years ago
parent 01a4decf06
commit da0a76e458

@ -74,7 +74,7 @@ longusage() {
echo " --lvm2 Include LVM2 support"
# echo " --unionfs Include UNIONFS support"
echo " --dmraid Include DMRAID support"
echo " --bladecenter Enables extra pauses for IBM Bladecenter CD boots"
echo " --slowusb Enables extra pauses for slow USB CD boots"
echo " --bootloader=grub Add new kernel to GRUB configuration"
echo " --linuxrc=<file> Specifies a user created linuxrc"
echo " --disklabel Include disk label and uuid support in your initrd"
@ -216,9 +216,9 @@ parse_cmdline() {
CMD_NO_BUSYBOX=1
print_info 2 "CMD_NO_BUSYBOX: $CMD_NO_BUSYBOX"
;;
--bladecenter)
CMD_BLADECENTER=1
print_info 2 "CMD_BLADECENTER: $CMD_BLADECENTER"
--slowusb)
CMD_SLOWUSB=1
print_info 2 "CMD_SLOWUSB: $CMD_SLOWUSB"
;;
--dmraid)
if [ ! -e /usr/include/libdevmapper.h ]

@ -419,9 +419,9 @@ create_initramfs_aux() {
fi
mkdir -p "${TEMP}/initramfs-aux-temp/lib/keymaps"
/bin/tar -C "${TEMP}/initramfs-aux-temp/lib/keymaps" -zxf "${GK_SHARE}/generic/keymaps.tar.gz"
if isTrue $CMD_BLADECENTER
if isTrue $CMD_SLOWUSB
then
echo 'MY_HWOPTS="${MY_HWOPTS} bladecenter"' >> ${TEMP}/initramfs-aux-temp/etc/initrd.defaults
echo 'MY_HWOPTS="${MY_HWOPTS} slowusb"' >> ${TEMP}/initramfs-aux-temp/etc/initrd.defaults
fi
cd ${TEMP}/initramfs-aux-temp/sbin && ln -s ../init init

@ -311,9 +311,9 @@ create_initrd_aux() {
fi
mkdir -p "${TEMP}/initrd-temp/lib/keymaps"
/bin/tar -C "${TEMP}/initrd-temp/lib/keymaps" -zxf "${GK_SHARE}/generic/keymaps.tar.gz"
if isTrue $CMD_BLADECENTER
if isTrue $CMD_SLOWUSB
then
echo 'MY_HWOPTS="${MY_HWOPTS} bladecenter"' >> ${TEMP}/initrd-temp/etc/initrd.defaults
echo 'MY_HWOPTS="${MY_HWOPTS} slowusb"' >> ${TEMP}/initrd-temp/etc/initrd.defaults
fi
cd ${TEMP}/initrd-temp/sbin && ln -s ../linuxrc init

@ -78,5 +78,5 @@ CONSOLE="/dev/console"
# Only sections that are in by default or those that
# are not module groups need to be defined here...
HWOPTS='usb firewire keymap cache evms2 sata lvm2 dmraid bladecenter'
HWOPTS='usb firewire keymap cache evms2 sata lvm2 dmraid slowusb'
MY_HWOPTS='usb firewire sata dmraid'

@ -275,11 +275,11 @@ start_dev_mgr(){
if [ "${USE_UDEV_NORMAL}" -eq '1' ]
then
cd /sys
[ "${DO_bladecenter}" ] && sleep 10
[ "${DO_slowusb}" ] && sleep 10
kill_devfsd
good_msg 'Activating udev'
runUdev
[ "${DO_bladecenter}" ] && sleep 20
[ "${DO_slowusb}" ] && sleep 20
cd /
else
if [ ! -e /dev/.devfsd ]

@ -612,7 +612,7 @@ then
fi
done
[ "${DO_bladecenter}" ] && sleep 10
[ "${DO_slowusb}" ] && sleep 10
mkdir initrd proc tmp sys 2>/dev/null
chmod 1777 tmp
fi
@ -627,7 +627,7 @@ then
# Let Init scripts know that we booted from CD
export CDBOOT
CDBOOT=1
[ "${DO_bladecenter}" ] && sleep 10
[ "${DO_slowusb}" ] && sleep 10
else
mkdir -p ${NEW_ROOT}/tmp/.initrd
fi
@ -651,7 +651,7 @@ then
cd ${CHROOT}
mkdir ${CHROOT}/proc ${CHROOT}/sys 2>/dev/null
pivot_root . tmp/.initrd
[ "${DO_bladecenter}" ] && sleep 10
[ "${DO_slowusb}" ] && sleep 10
echo -n '.'
if /tmp/.initrd/bin/[ "${USE_DEVFS_NORMAL}" -eq '1' -a "${CDROOT}" -eq '0' ]

Loading…
Cancel
Save