mirror of
https://github.com/trailofbits/algo.git
synced 2025-08-02 10:53:01 +02:00
wait for lxc network
This commit is contained in:
parent
d33ca9a243
commit
b2f4073921
1 changed files with 6 additions and 6 deletions
|
@ -25,6 +25,12 @@ lxc network attach lxdbr0 algo eth0 eth0
|
|||
lxc config device set algo eth0 ipv4.address 10.0.8.100
|
||||
lxc start algo
|
||||
|
||||
ip addr
|
||||
|
||||
until dig A +short algo.lxd @10.0.8.1 | grep -vE '^$' > /dev/null; do
|
||||
sleep 3
|
||||
done
|
||||
|
||||
case ${UBUNTU_VERSION} in
|
||||
20.04)
|
||||
lxc exec algo -- apt remove snapd --purge -y || true
|
||||
|
@ -34,10 +40,4 @@ case ${UBUNTU_VERSION} in
|
|||
;;
|
||||
esac
|
||||
|
||||
ip addr
|
||||
|
||||
until dig A +short algo.lxd @10.0.8.1 | grep -vE '^$' > /dev/null; do
|
||||
sleep 3
|
||||
done
|
||||
|
||||
lxc list
|
||||
|
|
Loading…
Add table
Reference in a new issue