Merge "Add troubleshooting override to deploy ramdisk."

This commit is contained in:
Jenkins 2013-11-18 19:08:45 +00:00 committed by Gerrit Code Review
commit 45a0082fa7

View File

@ -189,6 +189,21 @@ function stop_iscsi_target() {
}
function troubleshoot() {
if [ "$TROUBLESHOOT" != 1 ]; then
_DO_TROUBLESHOOT=""
_t=0
echo -n "Troubleshooting required, press t to launch shell."
while [ $_t -lt 10 ]; do
read -n 1 -t 1 _DO_TROUBLESHOOT
_t=$(($_t + 1))
if [ "$_DO_TROUBLESHOOT" == "t" ]; then
export TROUBLESHOOT=1
break
fi
echo -n "."
done
echo ""
fi
if [ "$TROUBLESHOOT" == 1 ]; then
echo "Starting troubleshooting shell."
bash