Skip to content

Commit 5435c98

Browse files
committed
fix: include busybox in CI guest image
1 parent 90fa402 commit 5435c98

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/guest-image.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,26 @@ jobs:
3838
# but the GNU cross-linker works fine for static musl builds.
3939
sudo ln -s /usr/bin/aarch64-linux-gnu-gcc /usr/local/bin/aarch64-linux-musl-gcc
4040
41+
- name: Download static busybox
42+
run: |
43+
case "${{ matrix.arch }}" in
44+
x86_64)
45+
DEB_URL="https://launchpad.net/ubuntu/+archive/primary/+files/busybox-static_1.36.1-6ubuntu3.1_amd64.deb"
46+
;;
47+
aarch64)
48+
DEB_URL="https://launchpad.net/ubuntu/+archive/primary/+files/busybox-static_1.36.1-6ubuntu3.1_arm64.deb"
49+
;;
50+
esac
51+
curl -fsSL "$DEB_URL" -o /tmp/busybox-static.deb
52+
cd /tmp && ar x busybox-static.deb && tar xf data.tar* ./usr/bin/busybox
53+
chmod +x /tmp/usr/bin/busybox
54+
4155
- name: Build initramfs
4256
run: |
4357
# Must match the kernel version in scripts/download_kernel.sh
4458
# so that the packaged modules are compatible with the VM kernel.
4559
ARCH=${{ matrix.arch }} \
60+
BUSYBOX=/tmp/usr/bin/busybox \
4661
VOID_BOX_KMOD_VERSION=6.8.0-51 \
4762
VOID_BOX_KMOD_UPLOAD=52 \
4863
OUT_CPIO=/tmp/rootfs.cpio.gz \

0 commit comments

Comments
 (0)