summaryrefslogtreecommitdiff
path: root/scripts/local
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-08-23 09:22:54 +0200
committermaximilian attems <maks@debian.org>2006-08-23 09:22:54 +0200
commitfabe918dee7da26d177d67d4aa8fe3fd6e83e513 (patch)
tree5dee066c10e912f5328dba7de3032cd6058019dc /scripts/local
parentd1d6763409a1260708423e0092d7bc4182275773 (diff)
downloadinitramfs-tools-fabe918dee7da26d177d67d4aa8fe3fd6e83e513.tar.gz
initramfs-tools-fabe918dee7da26d177d67d4aa8fe3fd6e83e513.zip
- improved nfsroo parsing
- added rootdelay and rootfstype bootargs - document this changes - initrd-tools backward compatible mdadm assembe and then run mdrun - update-initramfs really checkout use_bootloader from /etc/kernel-img.conf - tighter klibc deps
Diffstat (limited to 'scripts/local')
-rw-r--r--scripts/local19
1 files changed, 15 insertions, 4 deletions
diff --git a/scripts/local b/scripts/local
index 0b9baab..9d71a5e 100644
--- a/scripts/local
+++ b/scripts/local
@@ -11,11 +11,18 @@ mountroot ()
# to deal with removable devices
if [ ! -e "${ROOT}" ]; then
log_begin_msg "Waiting for root file system..."
+
+ # Default delay is 180s
+ if [ -z "${ROOTDELAY}" ]; then
+ slumber=180
+ else
+ slumber=${ROOTDELAY}
+ fi
if [ -x /sbin/usplash_write ]; then
- /sbin/usplash_write "TIMEOUT 180" || true
+ /sbin/usplash_write "TIMEOUT ${slumber}" || true
fi
- slumber=1800
+ slumber=$(( ${slumber} * 10 ))
while [ ${slumber} -gt 0 -a ! -e "${ROOT}" ]; do
/bin/sleep 0.1
slumber=$(( ${slumber} - 1 ))
@@ -38,8 +45,12 @@ mountroot ()
panic "ALERT! ${ROOT} does not exist. Dropping to a shell!"
done
- # Get the root filesystem type
- eval $(fstype < ${ROOT})
+ # Get the root filesystem type if not set
+ if [ -z "${ROOTFSTYPE}" ]; then
+ eval $(fstype < ${ROOT})
+ else
+ FSTYPE=${ROOTFSTYPE}
+ fi
[ "$quiet" != "y" ] && log_begin_msg "Running /scripts/local-premount"
run_scripts /scripts/local-premount