Thanks, James.
So perhaps adding (a cleaned-up version of) the following would work?
post-start script
checkifs() {
count=0;
virsh net-list | while read line; do
count=$((count+1))
if [ $count -lt 3 ]; then continue; fi
if echo $line | awk '{ print $3 }' | grep yes >
/dev/null 2>&1; then
if [ `echo $line | awk '{ print $2 }'` =
"inactive" ]; then
echo notready
return
fi
fi
done
echo ready
return
}
while [ `checkifs` = "notready" ]; do
sleep 1
done
end script
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1056927
Title:
'started libvirt-bin' event occurs before libvirt networks available
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1056927/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs