set timeout 60

spawn socat unix-connect:vm/console -
expect {
       "s6-linux-init"  { }
       timeout { exit 1 }
}
set timeout 30
expect {
       "#" { send "PS1=\$(echo 'I1JFQURZIyA=' | base64 -d); stty -echo\n" }
       timeout { exit 1 }
}
expect {
       "#READY#" { send "s6-svwait -t 10000 -u /run/service/sshd; echo continue\n" }
       timeout { exit 1 }
}       
expect {
       "#READY#" { }
       timeout { exit 1 }
}