From c0be6875c2c23b9376faab759dbc318688fef374 Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 1 Oct 2024 17:31:29 +0700 Subject: [PATCH] Fix issues with recent busybox versions * `busybox --install` does not exist * `sleep` does not take float values (e.g. 0.5). --- gns3server/compute/docker/resources/init.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gns3server/compute/docker/resources/init.sh b/gns3server/compute/docker/resources/init.sh index 695a7998..50ff3671 100755 --- a/gns3server/compute/docker/resources/init.sh +++ b/gns3server/compute/docker/resources/init.sh @@ -25,7 +25,10 @@ PATH=/gns3/bin:/tmp/gns3/bin:/sbin:$PATH # bootstrap busybox commands if [ ! -d /tmp/gns3/bin ]; then busybox mkdir -p /tmp/gns3/bin - /gns3/bin/busybox --install -s /tmp/gns3/bin + for applet in `busybox --list-full` + do + ln -s /gns3/bin/busybox "/tmp/gns3/bin/$applet" + done fi # Restore file permission and mount volumes @@ -75,7 +78,7 @@ ip link set dev lo up while true do grep $GNS3_MAX_ETHERNET /proc/net/dev > /dev/null && break - sleep 0.5 + usleep 500000 # wait 0.5 seconds done # activate eth interfaces