X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive;h=bf20ffc98f9a8c8ab2ca0aaf77bf39823ddaa4d2;hb=78ba9317d08612a3ab6b838e03240dc48be9c9f6;hp=9b9a4437156d355111085a3bb2ce13f4e2594993;hpb=b4c51c0c3d58f7065997849f8aef6c959b1f8f2c;p=live-boot-grml.git diff --git a/scripts/live b/scripts/live index 9b9a443..bf20ffc 100755 --- a/scripts/live +++ b/scripts/live @@ -286,9 +286,9 @@ Arguments () export NOPROGRAMCRASHES ;; - norestrictedmanager) - NORESTRICTEDMANAGER="Yes" - export NORESTRICTEDMANAGER + nojockey) + NOJOCKEY="Yes" + export NOJOCKEY ;; nosudo) @@ -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