1#!/usr/bin/env sh 2 3set -ex 4 5mkdir -m 777 /qemu 6cd /qemu 7 8curl --retry 5 -LO https://cdimage.debian.org/cdimage/ports/snapshots/2022-03-28/debian-11.0.0-sparc64-NETINST-1.iso 97z e debian-11.0.0-sparc64-NETINST-1.iso install/initrd.gz 107z e debian-11.0.0-sparc64-NETINST-1.iso install/vmlinux 11mv vmlinux kernel 12rm debian-11.0.0-sparc64-NETINST-1.iso 13 14mkdir init 15cd init 16gunzip -c ../initrd.gz | cpio -id 17rm ../initrd.gz 18cp /usr/sparc64-linux-gnu/lib/libgcc_s.so.1 usr/lib/ 19chmod a+w . 20