Skip to content

Beginner friendly guidance for building a static binary #1339

Answered by sogaiu
whacked asked this question in Q&A
Discussion options

You must be logged in to vote

I used qemu to setup an Alpine environment temporarily and carried out similar steps successfully.

Below is a summary of what I tried.

Setup and start Alpine system

wget https://dl-cdn.alpinelinux.org/alpine/v3.19/releases/x86_64/alpine-standard-3.19.0-x86_64.iso
# fetch and check sha256 / signature as desired -- see https://www.alpinelinux.org/downloads/

qemu-img create -f raw mykvm.config 1G
qemu-system-x86_64 -enable-kvm -m 2048 -name mykvm -cdrom alpine-standard-3.19.0-x86_64.iso -drive file=mykvm.config,if=virtio,format=raw -boot d

After it starts up, login as root (no / blank password), then use fdisk to create a partition:

fdisk /dev/vda

I used n to add a new primary partition a…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@whacked
Comment options

Answer selected by whacked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants