diff options
author | Pierre Ossman | 2007-07-16 08:40:35 +0200 |
---|---|---|
committer | Linus Torvalds | 2007-07-16 18:05:45 +0200 |
commit | cc1ed7542c8c26af0f501da8006b9fce03e9aaca (patch) | |
tree | f618c959d3740151de50ba59b13c3af8d00a3b71 /Documentation | |
parent | O_CLOEXEC for SCM_RIGHTS (diff) | |
download | kernel-qcow2-linux-cc1ed7542c8c26af0f501da8006b9fce03e9aaca.tar.gz kernel-qcow2-linux-cc1ed7542c8c26af0f501da8006b9fce03e9aaca.tar.xz kernel-qcow2-linux-cc1ed7542c8c26af0f501da8006b9fce03e9aaca.zip |
init: wait for asynchronously scanned block devices
Some buses (e.g. USB and MMC) do their scanning of devices in the
background, causing a race between them and prepare_namespace(). In order
to be able to use these buses without an initrd, we now wait for the device
specified in root= to actually show up.
If the device never shows up than we will hang in an infinite loop. In
order to not mess with setups that reboot on panic, the feature must be
turned on via the command line option "rootwait".
[bunk@stusta.de: root_wait can become static]
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/kernel-parameters.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index a0362d5a911e..a571495a9ac6 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt @@ -1504,6 +1504,10 @@ and is between 256 and 4096 characters. It is defined in the file rootfstype= [KNL] Set root filesystem type + rootwait [KNL] Wait (indefinitely) for root device to show up. + Useful for devices that are detected asynchronously + (e.g. USB and MMC devices). + rw [KNL] Mount root device read-write on boot S [KNL] Run init in single mode |