From 0cca2a707903257f6c685a0568af24b3184df5f0 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 4 Jul 2023 12:52:49 +0200 Subject: [PATCH] fix: Wait for address --- run/network.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/run/network.sh b/run/network.sh index 45982b7..9ff37b7 100644 --- a/run/network.sh +++ b/run/network.sh @@ -31,7 +31,11 @@ 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=$(