summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2007-11-22 15:08:12 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-11-22 15:08:12 +0000
commite0f4607a9d92714d1173ecfcc89cbd6af3343692 (patch)
treeb9dc165962e3284079f6d20ac7d6ade666bf8d38
parent17901ed364f1d8953445b5181d14977be561cad7 (diff)
initrdscripts: We obviously first do rootdelay, and only then create device nodes.
-rw-r--r--packages/initrdscripts/files/init.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/initrdscripts/files/init.sh b/packages/initrdscripts/files/init.sh
index 261a3b8477..f8d5de9173 100644
--- a/packages/initrdscripts/files/init.sh
+++ b/packages/initrdscripts/files/init.sh
@@ -8,8 +8,11 @@ early_setup() {
mkdir /proc
mount -t proc proc /proc
mkdir /mnt
+}
- echo -n "creating device nodes: "
+dev_setup()
+{
+ echo -n "initramfs: Creating device nodes: "
grep '^ *[0-9]' /proc/partitions | while read major minor blocks dev
do
if [ ! -e /dev/$dev ]; then
@@ -35,6 +38,7 @@ read_args() {
load_modules() {
for module in $MODULE_DIR/*; do
+ echo "initramfs: Loading $module module"
source $module
done
}
@@ -60,6 +64,8 @@ if [ -n "$rootdelay" ]; then
sleep $rootdelay
fi
+dev_setup
+
load_modules
[ -n "$BOOT_ROOT" ] && boot_root
boot_failed