Skip to content

Commit

Permalink
Update from base builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Neilpang committed Jan 9, 2025
1 parent b87f3b7 commit 87aec5d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,12 @@ cat enablessh.local
if [ "$VM_USE_SSHROOT_BUILD_SSH" ]; then
vmip=$($vmsh getVMIP $osname)
sshpass -p "$VM_ROOT_PASSWORD" ssh -o StrictHostKeyChecking=no -tt root@$vmip TERM=xterm <enablessh.local
#sleep for the sshd server to restart
sleep 10
inputKeys "enter"
sleep 2
inputKeys "enter"
sleep 2
echo "check ssh access:"
ssh -vv root@$vmip pwd
echo "ssh OK"
Expand All @@ -240,6 +246,12 @@ else
$vmsh screenText $osname
$vmsh inputFile $osname enablessh.local
$vmsh screenText $osname
#sleep for the sshd server to restart
sleep 10
inputKeys "enter"
sleep 2
inputKeys "enter"
sleep 2
fi


Expand Down

0 comments on commit 87aec5d

Please sign in to comment.