Sign in
◑
Theme
gdch-oss
/
third_party
/
0467ba01cee0bb87f91cff54521ad7cd80cde3df
/
.
/
.github
/
workflows
/
scripts
/
qemu-wait-for-vm.sh
blob: e8afdb3f7b988001cd57907e5cf796721036a077 [
file
]
#!/bin/bash
#
# Wait for a VM to boot up and become active. This is used in a number of our
# scripts.
#
# $1: VM hostname or IP address
while
pidof
/
usr
/
bin
/
qemu
-
system
-
x86_64
>/
dev
/
null
;
do
ssh
2
>/
dev
/
null zfs@$1
"uname -a"
&&
break
done