1 Video: https://tg.st/u/m1debian.mp4
3 diskutil apfs resizeContainer disk0s2 200GB
5 curl -L https://mrcn.st/alxsh | sh
7 curl -LO https://github.com/AsahiLinux/asahi-installer/archive/refs/heads/main.zip
9 cd asahi-installer-main/src
12 /tmp/asahi-install/Frameworks/Python.framework/Versions/3.9/bin/python3 -m firmware.wifi /usr/share/firmware/wifi /Volumes/Linux/linux-firmware.tar
14 - do not forget step2.sh
16 curl -LO https://tg.st/u/u-boot.macho
17 kmutil configure-boot -c u-boot.macho -v /Volumes/Linux
20 diskutil addPartition <identifier before free space> %EFI% LB 512MB
22 newfs_msdos /dev/<identifier of efi>
24 mount -t msdos /dev/<identifier of efi> /Volumes/efi
26 mkdir -p /Volumes/efi/efi/boot
27 curl -Lo /Volumes/efi/efi/boot/bootaa64.efi https://tg.st/u/grubaa64.efi
28 cp /Volumes/Linux/linux-firmware.tar /Volumes/Linux
31 diskutil addPartition <identifier before free space> %Linux% %noformat% <size>
33 curl -L https://tg.st/u/m1.tgz | tar -xOz | dd of=/dev/<identifier of Linux Filesystem>
37 # We deinstall grub-efi-arm64-signed- because it creates a file fbaa64.efi
38 # which makes u-boot hang.
39 apt-get install grub-efi grub-efi-arm64-signed-
40 grub-install --target=arm64-efi --efi-directory=/boot/efi --removable
41 # Set removable media to yes and nvram to no to make later grub updates work
42 dpkg-reconfigure grub-efi-arm64
44 update-initramfs -k all -c
47 resize2fs <device of root filesystem>
49 cd /etc/network/interfaces.d