summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-11-11 17:52:41 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:02 +0100
commit95cdfc252b7b9ee537bc2584717a25ff04971015 (patch)
treeba44b29bc922faeb1e8721d90934a88816c22d7b /scripts
parent51bcd807500eb90c674974023d5d7ed7bdb89e9f (diff)
downloadlive-boot-95cdfc252b7b9ee537bc2584717a25ff04971015.tar.gz
live-boot-95cdfc252b7b9ee537bc2584717a25ff04971015.zip
Merging casper 1.144.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/live b/scripts/live
index 9b9a443..efd0327 100755
--- a/scripts/live
+++ b/scripts/live
@@ -799,11 +799,13 @@ do_nfsmount ()
log_begin_msg "Trying nfsmount -o nolock -o ro ${NFSOPTS} ${NFSROOT} ${mountpoint}"
- # FIXME: This for loop is an ugly HACK round an nfs bug
- for i in 0 1 2 3 4 5 6 7 8 9 a b c d e f 10 11 12 13
+ # FIXME: This while loop is an ugly HACK round an nfs bug
+ i=0
+ while [ "$i" -lt 60 ]
do
nfsmount -o nolock -o ro ${NFSOPTS} "${NFSROOT}" "${mountpoint}" && rc=0 && break
sleep 1
+ i="$(($i + 1))"
done
return ${rc}
@@ -1461,7 +1463,8 @@ mountroot ()
livefs_root=${ROOT}
else
# Scan local devices for the image
- for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
+ i=0
+ while [ "$i" -lt 60 ]
do
livefs_root=$(find_livefs ${i})
@@ -1471,6 +1474,7 @@ mountroot ()
fi
sleep 1
+ i="$(($i + 1))"
done
fi
fi