This repository holds no code and just builds u-root images via GitHub Actions.
Download a prebuilt u-root image from releases:
curl -L -o u-root.cpio.xz https://github.com/linuxboot/u-root-builder/releases/download/v0.0.1/u-root_amd64_all.cpio.xz
Download a kernel from Arch Linux and extract it:
curl -L -o linux.tar.zst https://archlinux.org/packages/core/x86_64/linux/download/
tar -xf linux.tar.zst
Run it:
qemu-system-x86_64 -enable-kvm -machine q35 -nographic -append "console=ttyS0" \
-kernel usr/lib/modules/*/vmlinuz -initrd u-root.cpio.xz
Run a command:
uname -a