+build_live_stick()
+{
+(
+ rm -rf live-stick
+ mkdir -p live-stick/efi/boot live-stick/efi/debian/
+ sudo cp ../files/wifi.pl testing/etc/rc.local
+ sudo bash -c 'cd testing; find . | cpio --quiet -H newc -o | zstd -T0 -16 > ../live-stick/initrd.zstd'
+ 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 ../asahi-debian-live.tar .)
+)
+}
+
+build_dd()
+{
+(
+ rm -f media
+ dd if=/dev/zero of=media bs=1 count=0 seek=2G
+ mkdir -p mnt
+ mkfs.ext4 media
+ tune2fs -O extents,uninit_bg,dir_index -m 0 -c 0 -i 0 media
+ sudo mount -o loop media mnt
+ sudo cp -a testing/* mnt/
+ sudo rm -rf mnt/init mnt/boot/efi/m1n1
+ sudo umount mnt
+ tar cf - media | pigz -9 > m1.tgz
+)
+}