bootstrap-rocky-8/get-busy-box-static.sh

24 lines
457 B
Bash
Raw Normal View History

2024-09-19 06:09:52 +03:00
#!/usr/bin/env bash
set -x
set -e
docker run -d --name busybox_extractor -v ${pwd}:/installer debian:12 sleep 3600
docker exec -it busybox_extractor apt update
docker exec -it busybox_extractor apt upgrade -y
docker exec -it busybox_extractor apt install -y busybox-static
docker exec -it busybox_extractor cp -vf /usr/bin/busybox /installer/
docker stop busybox_extractor
docker rm busybox_extractor
cp -vf busybox /usr/bin/busybox
set +e
set +x