opennebula/alpine: install curl inside rootfs

This commit is contained in:
Nico Schottelius 2026-09-01 12:23:47 +02:00
commit be7bcd9ef5

View file

@ -81,7 +81,7 @@ apk add -U -X $APK_MIRROR$RELEASE/main/ \
--arch="$ARCH" \
--root=/mnt \
--initdb \
alpine-base alpine-conf openssh tzdata gnupg haveged bash eudev curl
alpine-base alpine-conf openssh tzdata gnupg haveged bash eudev
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
@ -173,6 +173,7 @@ run_root cat /etc/default/grub
run_root cat /etc/fstab
# Install one-context APK and hope things works as expected.
run_root apk add curl
curl -L "$ONE_CONTEXT_APK_URL" > "/mnt$ONE_CONTEXT_APK_PATH"
run_root apk add --allow-untrusted "$ONE_CONTEXT_APK_PATH"
run_root rm "$ONE_CONTEXT_APK_PATH"