From a52354d5b2f317fe22319216d663cc0c5d9863d3 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sat, 3 May 2025 22:06:11 +0200 Subject: [PATCH] Sort interfaces to ensure a reliable creation order --- files/init-container.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/init-container.sh b/files/init-container.sh index 00bc5a9..ffd5c79 100755 --- a/files/init-container.sh +++ b/files/init-container.sh @@ -17,7 +17,7 @@ sed -i -e 's,^root:.*,root:$y$j9T$kG8pyZEVmwLXEtXekQCRK.$9iJxq/bEx5buni1hrC8Vmvk echo "Generating $CLAB_VPP_FILE" : > $CLAB_VPP_FILE MTU=9216 -for IFNAME in $(ip -br link show type veth | cut -f1 -d@ | grep -v ^eth0$); do +for IFNAME in $(ip -br link show type veth | cut -f1 -d@ | grep -v '^eth0$' | sort); do MAC=$(ip -br link show dev $IFNAME | awk '{ print $3 }') echo " * $IFNAME hw-addr $MAC mtu $MTU" ip link set $IFNAME up mtu $MTU