+casper (1.144) intrepid; urgency=low
+
+ * Bump media detection timeout to a minute; thanks to Tormod Volden and
+ Steve Beattie for analysis (LP: #258432).
+ * Note that this changes (fixes?) the semantics of LIVEMEDIA_TIMEOUT due
+ to not using hex values in a for loop which aren't understood by test
+ -lt (thanks, Steve Beattie).
+
+ -- Colin Watson <cjwatson@ubuntu.com> Fri, 26 Sep 2008 18:35:13 +0100
+
casper (1.143) intrepid; urgency=low
* scripts/casper-bottom/30accessibility &
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}
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})
fi
sleep 1
+ i="$(($i + 1))"
done
fi
fi