2018-11-19 15:49:56 +01:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
2017-10-31 13:09:29 +01:00
|
|
|
set -ex
|
|
|
|
|
|
|
|
mkdir -m 777 /qemu
|
|
|
|
cd /qemu
|
|
|
|
|
2019-05-15 16:24:29 +02:00
|
|
|
curl --retry 5 -LO https://cdimage.debian.org/cdimage/ports/10.0/sparc64/iso-cd/debian-10.0-sparc64-NETINST-1.iso
|
|
|
|
7z e debian-10.0-sparc64-NETINST-1.iso boot/initrd.gz
|
|
|
|
7z e debian-10.0-sparc64-NETINST-1.iso boot/sparc64
|
2017-10-31 13:09:29 +01:00
|
|
|
mv sparc64 kernel
|
2019-05-15 16:24:29 +02:00
|
|
|
rm debian-10.0-sparc64-NETINST-1.iso
|
2017-10-31 13:09:29 +01:00
|
|
|
|
|
|
|
mkdir init
|
|
|
|
cd init
|
|
|
|
gunzip -c ../initrd.gz | cpio -id
|
|
|
|
rm ../initrd.gz
|
|
|
|
cp /usr/sparc64-linux-gnu/lib/libgcc_s.so.1 usr/lib/
|
|
|
|
chmod a+w .
|