From 03d333e29991c4608f1b7c0b453cc132e073a9a2 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 5 Jul 2023 13:04:17 +0200 Subject: [PATCH] fix: Delete network on shutdown --- run/network.sh | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/run/network.sh b/run/network.sh index aa11881..e0ffaae 100644 --- a/run/network.sh +++ b/run/network.sh @@ -31,7 +31,10 @@ configureDHCP() { error "and that the NET_ADMIN capability has been added to the container config: --cap-add NET_ADMIN" && exit 16 fi - ip link set "${VM_NET_TAP}" up + while ! ip link set "${VM_NET_TAP}" up; do + info "Waiting for address to become available..." + sleep 2 + done TAP_NR=$(