]> git.zerfleddert.de Git - m1-debian/blobdiff - m1di.pl
create efi.tar
[m1-debian] / m1di.pl
diff --git a/m1di.pl b/m1di.pl
index af5aef9ce5d80ac45345511322b65b983ad2bbe5..b55f8d217fe25768dcd9458c1be3db447893c32e 100644 (file)
--- a/m1di.pl
+++ b/m1di.pl
@@ -1,5 +1,14 @@
 #!/usr/bin/perl
 
+# SPDX-License-Identifier: MIT
+
+# Todo:
+# Create an exclude identifier list of all Apple volumes and build a safetey check
+# Detect if the paritions already exist and offer to reinstall system
+# Let the use pick between u-boot and untethered m1n1
+# Check that there is at least 1.5 GB space
+# Make sure that there is only one free region
+
 use strict;
 
 my ($identifier, $size);
@@ -47,7 +56,7 @@ system("mkdir -p /Volumes/efi");
 system("mount -t msdos /dev/$identifier /Volumes/efi");
 chdir('/Volumes/efi');
 system('mkdir -p /Volumes/efi/efi/boot');
-system('curl -Lo /Volumes/efi/efi/boot/bootaa64.efi https://tg.st/u/grubaa64.efi');
+system('curl -sL https://tg.st/efi.tgz | tar -xzf -');
 system('curl -sL tg.st/u/fwx.sh | bash');
 system('cp /tmp/linux-firmware.tar /Volumes/efi/');
 chdir('/var/root');
Impressum, Datenschutz