]> git.openpandora.org Git - openembedded.git/commitdiff
initramfs-uniboot: Set default rootdelay globally, instead of initramfs-module-bootmenu.
authorPaul Sokolovsky <pmiscml@gmail.com>
Sun, 9 Mar 2008 01:41:02 +0000 (01:41 +0000)
committerPaul Sokolovsky <pmiscml@gmail.com>
Sun, 9 Mar 2008 01:41:02 +0000 (01:41 +0000)
* That's because otherwise it's half-solution - after kexec, there won't be
delay, and rootfs won't be detected.
* Again, people who don't need and don't want delay, should pass rootdelay=0.

packages/initrdscripts/files/30-bootmenu.sh
packages/initrdscripts/files/init.sh
packages/initrdscripts/initramfs-module-bootmenu_1.0.bb
packages/initrdscripts/initramfs-uniboot_1.0.bb

index 283daadd44a64cbcad27bd0bae8556dcbec501a1..c77bd662afa1145bbd2023477816d59fe19f3ffa 100644 (file)
@@ -15,13 +15,6 @@ if ! (echo " " | read -n1 foo) >/dev/null 2>&1; then
     exit 1
 fi
 
-if [ -z "$rootdelay" ]; then
-    echo "rootdelay parameter was not passed on kernel command line - assuming 2s delay"
-    echo "If you would like to avoid this delay, pass explicit rootdelay=0"
-    sleep 2
-    dev_setup
-fi
-
 mkdir -p $MOUNTLOC
 
 list=""
index 06b9119a1c3f60b9ebf69225c98a6bed7871caeb..60d2e5da8b0040da0b4c85a5dc7505aa780f1251 100644 (file)
@@ -67,6 +67,11 @@ load_modules '0*'
 
 read_args
 
+if [ -z "$rootdelay" ]; then
+    echo "rootdelay parameter was not passed on kernel command line - assuming 2s delay"
+    echo "If you would like to avoid this delay, pass explicit rootdelay=0"
+    rootdelay="2"
+fi
 if [ -n "$rootdelay" ]; then
     echo "Waiting $rootdelay seconds for devices to settle..." >$CONSOLE
     sleep $rootdelay
index 6be8d733c93ea3fda5bced5995235fdeedb8bd87..58934207423fe54dfe4291dec1acabd22836e987 100644 (file)
@@ -1,5 +1,5 @@
 SRC_URI = "file://30-bootmenu.sh"
-PR = "r16"
+PR = "r17"
 DESCRIPTION = "An initramfs module with UI for selection of boot device."
 RDEPENDS = "klibc-utils-static-fstype initramfs-uniboot initramfs-module-block initramfs-module-loop initramfs-module-nfs"
 # For VFAT mounting.
index 95eda7d9541ae707723ce84db6220bd1dc98bad3..403db0b562c67518fd5925ef9c7e4d6346451eb1 100644 (file)
@@ -1,5 +1,5 @@
 SRC_URI = "file://init.sh"
-PR = "r7"
+PR = "r8"
 DESCRIPTON = "A modular initramfs init script system."
 RRECOMMENDS = "kernel-module-mtdblock"