Add troubleshooting override to deploy ramdisk.
We now allow operators to drop into a troubleshooting shell while booting a deploy ramdisk, without having to have pre-configured their desire to do so ahead of time, by means of a 10 second pause for them to press a key. Change-Id: I05ffa1ebaa95c83dee7bd2a2f52ba4c08928bb10
This commit is contained in:
parent
5387b01af9
commit
1f328087d9
@ -189,6 +189,21 @@ function stop_iscsi_target() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function troubleshoot() {
|
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
|
if [ "$TROUBLESHOOT" == 1 ]; then
|
||||||
echo "Starting troubleshooting shell."
|
echo "Starting troubleshooting shell."
|
||||||
bash
|
bash
|
||||||
|
Loading…
Reference in New Issue
Block a user