From: "Richard Yao" <ryao@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/genkernel:ryao commit in: doc/, defaults/
Date: Mon, 3 Jun 2013 23:35:00 +0000 (UTC) [thread overview]
Message-ID: <1366874452.ffa5076fd4681e6b65968b826b84a66fabcd75f6.ryao@gentoo> (raw)
commit: ffa5076fd4681e6b65968b826b84a66fabcd75f6
Author: Fabio Erculiani <lxnay <AT> sabayon <DOT> org>
AuthorDate: Tue Apr 23 16:12:46 2013 +0000
Commit: Richard Yao <ryao <AT> gentoo <DOT> org>
CommitDate: Thu Apr 25 07:20:52 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=ffa5076f
Drop doslowusb and noslowusb boot parameters.
scandelay=<secs> should be always preferred. Moreover, nowadays
automatically sleeping waiting for USB storage to come up in
the way we were used to do it doesn't work as one expects, because
USB is very common and USB storage devices are very likely to be
present on a system.
Furthermore, the initialization code after setup_slowusb is already
waiting for devices to come up.
---
defaults/initrd.defaults | 4 ++--
defaults/initrd.scripts | 21 ---------------------
defaults/linuxrc | 6 ------
doc/genkernel.8.txt | 5 -----
4 files changed, 2 insertions(+), 34 deletions(-)
diff --git a/defaults/initrd.defaults b/defaults/initrd.defaults
index e70beab..cbf18f3 100755
--- a/defaults/initrd.defaults
+++ b/defaults/initrd.defaults
@@ -72,5 +72,5 @@ DEFAULT_NFSOPTIONS="ro,nolock,rsize=1024,wsize=1024"
# Only sections that are in by default or those that
# are not module groups need to be defined here...
-HWOPTS='keymap cache modules pata sata scsi usb firewire waitscan slowusb lvm dmraid mdadm fs net'
-MY_HWOPTS='modules pata sata scsi slowusb usb firewire waitscan dmraid mdadm fs net iscsi crypto'
+HWOPTS='keymap cache modules pata sata scsi usb firewire waitscan lvm dmraid mdadm fs net'
+MY_HWOPTS='modules pata sata scsi usb firewire waitscan dmraid mdadm fs net iscsi crypto'
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index abd8fad..a216b84 100755
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -446,27 +446,6 @@ prompt_user(){
esac
}
-setup_slowusb() {
- # This function removes unset DO_slowusb if there is no usb-storage attached.
- # If noslowusb is set, skip this function
- [ "${DO_slowusb}" ] || return
-
- # Unset DO_slowusb, so we can set it again if usb-storage has something attached
- unset DO_slowusb
-
- local usb_storage_dir="/sys/bus/usb/drivers/usb-storage"
- if [ ! -d "${usb_storage_dir}" ]
- then
- # no automated slowusb required. no usb-storage devices attached.
- return
- fi
- for x in "${usb_storage_dir}"/*
- do
- [ -d "${x}" ] && [ "${x}" != "${usb_storage_dir}/module" ] \
- && { DO_slowusb="1" ; break ; }
- done
-}
-
cmdline_hwopts() {
# Scan CMDLINE for any "doscsi" or "noscsi"-type arguments
local FOUND
diff --git a/defaults/linuxrc b/defaults/linuxrc
index 805515b..ba9c5d5 100755
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -359,14 +359,8 @@ mdev -s || bad_msg "mdev -s failed"
# Apply scan delay if specified
sdelay
-# Setup slow USB bits
-setup_slowusb
-
cd /
-# if doslowusb is passed, pause other 10 seconds here, after mdev load
-[ "${DO_slowusb}" ] && sleep 10
-
# Start iSCSI
if [ -e /bin/iscsistart ]
then
diff --git a/doc/genkernel.8.txt b/doc/genkernel.8.txt
index 86d7d53..54d26d2 100644
--- a/doc/genkernel.8.txt
+++ b/doc/genkernel.8.txt
@@ -472,11 +472,6 @@ 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
next reply other threads:[~2013-06-03 23:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-03 23:35 Richard Yao [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-06-03 23:35 [gentoo-commits] proj/genkernel:ryao commit in: doc/, defaults/ Richard Yao
2013-06-03 23:35 Richard Yao
2013-01-01 16:53 Richard Yao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1366874452.ffa5076fd4681e6b65968b826b84a66fabcd75f6.ryao@gentoo \
--to=ryao@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox