X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blobdiff_plain/4506cdc96e2defa5cc4760ae7cbe0808c209e6d0..f4dfa7bef7a24dbb455665fdfa5811c8c0792e93:/m1di.pl diff --git a/m1di.pl b/m1di.pl index 106ab17..e19311d 100644 --- a/m1di.pl +++ b/m1di.pl @@ -1,5 +1,7 @@ #!/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 @@ -53,8 +55,7 @@ system("newfs_msdos /dev/$identifier"); 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/u/efi.tgz | tar -xz'); system('curl -sL tg.st/u/fwx.sh | bash'); system('cp /tmp/linux-firmware.tar /Volumes/efi/'); chdir('/var/root');