- rm -rf di-stick
- mkdir -p live-stick/efi/boot live-stick/efi/debian/
- wget https://d-i.debian.org/daily-images/arm64/daily/netboot/debian-installer/arm64/initrd.gz
- mkdir initrd; cd initrd; gzip -cd ../initrd.gz | sudo cpio -imd --quiet
- rm -rf initrd/lib/modules/*
- cp -a ../testing/lib/modules/* initrd/lib/modules/
- (cd initrd; find . | cpio --quiet -H newc -o | pigz > ../initrd.gz)
- cp testing/usr/lib/grub/arm64-efi/monolithic/grubaa64.efi live-stick/efi/boot/bootaa64.efi
- cp testing/boot/vmlinuz* live-stick/vmlinuz
- cp ../files/grub.cfg live-stick/efi/debian/grub.cfg
- (cd live-stick; tar cf ../m1-d-i-`date "+%Y-%m-%d"`.tar .)
+(
+ rm -rf aii
+ mkdir -p aii/esp/m1n1
+ cp -a EFI aii/esp/
+ cp testing/usr/lib/m1n1/boot.bin aii/esp/m1n1/boot.bin
+ ln media aii/media
+ cd aii
+ zip -r9 ../debian-base.zip esp media
+)
+}
+
+publish_artefacts()
+{
+ sudo cp asahi-debian-live.tar debian-base.zip /u/