From 343d0f3d0efaf486ddc676130786d95fc06f682c Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Mon, 3 Jul 2006 20:27:23 +0000 Subject: Enhanced debugging settings (see DebugLevel), some fixes for the use with busybox, ... git-svn-id: http://svn.openslx.org/svn/openslx/ld4@267 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/initrd-stuff/init | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'initrd/initrd-stuff/init') diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init index 31e1335e..c3461a1f 100755 --- a/initrd/initrd-stuff/init +++ b/initrd/initrd-stuff/init @@ -2,7 +2,7 @@ # Description: main script for new type of initial ramdisk for # linux diskless clients version 4 # -# Author(s): Dirk von Suchodoletz , 02-07-2006 +# Author(s): Dirk von Suchodoletz , 03-07-2006 # # Copyright: (c) 2006 - RZ Universitaet Freiburg # (c) 2006 - odlx.org project @@ -193,6 +193,7 @@ if [ "${DEBUGLEVEL}" -gt 0 ] ; then set -x # and the kernel too echo "7 7 7 7" >/proc/sys/kernel/printk; } + [ "${DEBUGLEVEL}" -gt 10 ] && set +x else # switch off most of kernel debug output echo "0 0 0 0" >/proc/sys/kernel/printk @@ -315,9 +316,9 @@ if [ -n "${NBD}" ] ; then NFSRO="" fi # finally mount the block device - for i in 50 100 ; do + for i in 5 40 60 ; do usleep $i - mount -n -t $RFST -o $RWRO $RDEV /mnt 2>/dev/null + mount -n -t $RFST -o $RWRO $RDEV /mnt 2>/dev/null && break done fi @@ -477,7 +478,7 @@ postinit [ -x /bin/postinit.local ] && /bin/postinit.local # start a debug shell in higher debug levels -[ $DEBUGLEVEL -gt 2 ] && start_shell +[ $DEBUGLEVEL -gt 2 ] && /bin/sh # unmount the bind mounted modules directory for i in 0 40 100 200 300 500 800 1000 1200; do -- cgit v1.2.3-55-g7522