+export DEBOOTSTRAP=debootstrap
+
+build_rootfs()
+{
+(
+ sudo rm -rf testing
+ mkdir -p cache
+ sudo eatmydata ${DEBOOTSTRAP} --cache-dir=`pwd`/cache --arch=arm64 --include initramfs-tools,pciutils,wpasupplicant,tcpdump,vim,tmux,vlan,ntpdate,parted,curl,wget,grub-efi-arm64,mtr-tiny,dbus,ca-certificates,sudo,openssh-client,mtools,gdisk,cryptsetup,wireless-regdb,zstd testing testing http://deb.debian.org/debian
+
+ cd testing
+
+ sudo mkdir -p boot/efi/m1n1 etc/X11/xorg.conf.d
+
+ sudo bash -c 'echo debian > etc/hostname'
+
+ sudo bash -c 'echo > etc/motd'
+
+ sudo cp ../../files/sources.list etc/apt/sources.list
+ sudo cp ../../files/glanzmann.list etc/apt/sources.list.d/
+ sudo cp ../../files/thomas-glanzmann.gpg etc/apt/trusted.gpg.d/
+ sudo cp ../../files/hosts etc/hosts
+ sudo cp ../../files/resolv.conf etc/resolv.conf
+ sudo cp ../../files/quickstart.txt root/
+ sudo cp ../../files/interfaces etc/network/interfaces
+ sudo cp ../../files/wpa.conf etc/wpa_supplicant/wpa_supplicant.conf
+ sudo cp ../../files/rc.local etc/rc.local
+ sudo cp ../../files/30-modeset.conf etc/X11/xorg.conf.d/30-modeset.conf
+ sudo cp ../../files/blacklist.conf etc/modprobe.d/
+
+ sudo perl -p -i -e 's/"quiet"/"net.ifnames=0"/ if /^GRUB_CMDLINE_LINUX_DEFAULT=/' etc/default/grub
+
+ sudo bash -c 'chroot . apt update'
+ sudo bash -c 'chroot . apt install -y firmware-linux'
+
+ sudo -- perl -p -i -e 's/root:x:/root::/' etc/passwd
+
+ sudo -- ln -s lib/systemd/systemd init
+
+ sudo chroot . apt update
+ sudo chroot . apt install -y m1n1 linux-image-asahi
+ sudo chroot . apt clean
+ sudo rm var/lib/apt/lists/* || true
+)
+}
+
+build_live_stick()