From: Peter Hjalmarsson Date: Wed, 23 Mar 2011 19:32:45 +0000 (+0100) Subject: Remove "--slowusb" as it is enabled by default. Also document "noslowusb". X-Git-Tag: v3.4.15~1^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1cf3de853a23946c8233ace771461353b3a354af;p=genkernel.git Remove "--slowusb" as it is enabled by default. Also document "noslowusb". --- diff --git a/ChangeLog b/ChangeLog index e4127a2..f2b5113 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,11 @@ # Distributed under the GPL v2 # $Id$ + 23 Mar 2011; Peter Hjalmarsson doc/genkernel.8.txt, + gen_cmdline.sh, gen_initramfs.sh: + Remove "--slowusb" as it is enabled by default now. Also document "noslowusb" + ramdisk option that skips it. + 22 Mar 2011; Peter Hjalmarsson defaults/initrd.defaults, defaults/initrd.scripts: Set DO_slowusb as default, and make setup_slowusb unset it if it cannot find diff --git a/doc/genkernel.8.txt b/doc/genkernel.8.txt index a78da11..9091d95 100644 --- a/doc/genkernel.8.txt +++ b/doc/genkernel.8.txt @@ -263,9 +263,6 @@ INITIALIZATION *--iscsi*:: Include iSCSI support -*--slowusb*:: - Enables extra pauses for slow USB CD boots. - *--bootloader*=*grub*:: Add new kernel to GRUB configuration. @@ -427,6 +424,11 @@ which the ramdisk scripts would recognize. Activate SCSI devices on bootup, necessary when SCSI support is compiled as modules and you're using SCSI or SATA devices. +*noslowusb*:: + By default genkernel pause for 10 seconds if it finds a attached + usb-storage device to give them time to initiate. + This option skips that pause. + *keymap*='MAP':: Set keymap to 'MAP', e.g. *keymap*=de. For valid values of 'MAP' please see diff --git a/gen_cmdline.sh b/gen_cmdline.sh index 506ca3f..9e4009e 100755 --- a/gen_cmdline.sh +++ b/gen_cmdline.sh @@ -84,7 +84,6 @@ longusage() { echo " --dmraid Include DMRAID support" echo " --multipath Include Multipath support" echo " --iscsi Include iSCSI support" - echo " --slowusb Enables extra pauses for slow USB CD boots" echo " --bootloader=grub Add new kernel to GRUB configuration" echo " --linuxrc= Specifies a user created linuxrc" echo " --busybox-config= Specifies a user created busybox config" @@ -269,10 +268,6 @@ parse_cmdline() { CMD_REAL_ROOT=`parse_opt "$*"` print_info 2 "CMD_REAL_ROOT: ${CMD_REAL_ROOT}" ;; - --slowusb) - CMD_SLOWUSB=1 - print_info 2 "CMD_SLOWUSB: ${CMD_SLOWUSB}" - ;; --dmraid) if [ ! -e /usr/include/libdevmapper.h ] then diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 2d017fd..543f484 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -349,7 +349,7 @@ append_mdadm(){ cp -a "${MDADM_CONFIG}" "${TEMP}/initramfs-mdadm-temp/etc/mdadm.conf" \ || gen_die "Could not copy mdadm.conf!" else - gen_die '${MDADM_CONFIG} does not exist!' + gen_die 'sl${MDADM_CONFIG} does not exist!' fi else print_info 1 ' MDADM: Skipping inclusion of mdadm.conf' @@ -629,10 +629,6 @@ append_auxilary() { mkdir -p "${TEMP}/initramfs-aux-temp/lib/keymaps" /bin/tar -C "${TEMP}/initramfs-aux-temp/lib/keymaps" -zxf "${GK_SHARE}/defaults/keymaps.tar.gz" fi - if isTrue $CMD_SLOWUSB - then - echo 'MY_HWOPTS="${MY_HWOPTS} slowusb"' >> ${TEMP}/initramfs-aux-temp/etc/initrd.defaults - fi cd ${TEMP}/initramfs-aux-temp/sbin && ln -s ../init init cd ${TEMP}