lxc, lxd: Wait for containers to get a default network route
We execute `apt-get update' more or less as soon as the container is
started. In some situations this is too early: it can be before network
is fully working.
When building lxc//lxd containers or using autopkgtest-virt-lxc/-lxd,
wait until we have a default route before proceeding.
Modified-By: Martin Pitt <mpitt@debian.org>:>
- Add the same approach to LXC
- Some somplifications/robustifications
LP: #1749736
parent
9c8f6445