diff options
author | maximilian attems <maks@debian.org> | 2006-09-19 23:56:24 +0200 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2006-09-19 23:56:24 +0200 |
commit | 681dc7a7566afa2de5fa7d1edf8aa1c25ec451a6 (patch) | |
tree | 2970937bdf17b47fb1696000dfa0877b5c27011b /scripts/nfs | |
parent | d4105f86b31e2c0fd35d060982a3f50e9eb9baf1 (diff) | |
download | initramfs-tools-681dc7a7566afa2de5fa7d1edf8aa1c25ec451a6.tar.gz initramfs-tools-681dc7a7566afa2de5fa7d1edf8aa1c25ec451a6.zip |
- more nfs work (timeout, parsing, typo)
- lilo codeflow
- add lasi700 scsi module
Diffstat (limited to 'scripts/nfs')
-rw-r--r-- | scripts/nfs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/scripts/nfs b/scripts/nfs index c66e2a1..b3ac06f 100644 --- a/scripts/nfs +++ b/scripts/nfs @@ -16,7 +16,7 @@ do_nfsmount() # Bring up device ipconfig ${DEVICE} ;; - dhcp|bootb|rarp|both) + dhcp|bootp|rarp|both) ipconfig -c ${IPOPTS} -d ${DEVICE} ;; *) @@ -49,7 +49,7 @@ do_nfsmount() NFSOPTS="-o ${NFSROOT#*,}" fi NFSROOT=${NFSROOT%%,*} - if [ "${NFSROOT#*:}" = "$NFSROOT" ]; then + if [ "${NFSROOT#:*}" = "$NFSROOT" ]; then NFSROOT=${ROOTSERVER}:${NFSROOT} fi fi @@ -83,7 +83,7 @@ mountroot() modprobe -q af_packet # Default delay is around 180s - # FIXME: add usplash info + # FIXME: add usplash_write info if [ -z "${ROOTDELAY}" ]; then delay=180 else @@ -91,15 +91,13 @@ mountroot() fi # loop until nfsmount succeds - while [ ${delay} -gt 0 ] && [ ! -e ${rootmnt}${init} ]; do + while [ ${retry_nr} -lt ${delay} ] && [ ! -e ${rootmnt}${init} ]; do [ ${retry_nr} -gt 0 ] && \ [ "$quiet" != "y" ] && log_begin_msg "Retrying nfs mount" do_nfsmount - # FIXME: ipconfig loops every min at least - better param?? - delay=$(( ${delay} - 1 )) - [ ${retry_nr} -gt 0 ] && [ "$quiet" != "y" ] && log_end_msg - [ ! -e ${rootmnt}/sbin/init ] && /bin/sleep 0.1 retry_nr=$(( ${retry_nr} + 1 )) + [ ! -e ${rootmnt}${init} ] && /bin/sleep 1 + [ ${retry_nr} -gt 0 ] && [ "$quiet" != "y" ] && log_end_msg done [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/nfs-bottom" |