Skip to content

Commit

Permalink
Testing of u-root/u-root#508 (comment) works, outside of qemu bug whi…
Browse files Browse the repository at this point in the history
…ch doesn't refresh qemu on top of qemu here. Would be nice if host's ttys0 was redirected to host calling qemu, but unrelated. Waiting for linuxboot#1403 to be tested on kvm and upgrading to debian-12 myself to see if bug resolved inside of qemu. Nice work there!
  • Loading branch information
tlaurion committed May 11, 2023
1 parent b9bf991 commit f9fcb3c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions initrd/bin/Boot2ContainerPoC
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
network-init-recovery
rm -f /bin/wget
echo "Downloading full linux kernel..."
wget https://gitlab.freedesktop.org/mupuf/boot2container/-/releases/v0.9.9/downloads/linux-x86_64-full -O /tmp/linux-x86_64-full
echo "Downloading initramfs..."
wget https://gitlab.freedesktop.org/mupuf/boot2container/-/releases/v0.9.9/downloads/initramfs.linux_amd64.cpio.xz -O /tmp/initramfs.linux_amd64.cpio.xz
echo "Preparing kexec...."
kexec -d -l /tmp/linux-x86_64-full --initrd=/tmp/initramfs.linux_amd64.cpio.xz --append='console=ttyS0 console=tty b2c.run="-ti docker.io/library/alpine:latest"'
kexec -e

0 comments on commit f9fcb3c

Please sign in to comment.