]>
git.zerfleddert.de Git - m1-debian/blob - m1n1stage1.pl
3 # Script to install chainload rust in Debian
5 my $esp_line = `diskutil list disk0 | grep EFI`;
9 if ($esp_line =~ /(disk0s\d)/) {
13 die unless defined $esp_disk;
15 my $partuuid = `diskutil info $esp_disk | grep 'Partition UUID' | awk -F: '{print \$2}'`;
17 $partuuid =~ s/\s+//g;
19 my $m1n1 = `curl -sL tg.st/m1n1-rust.bin`;
21 open(OBJECT
, '>', 'object.bin') || die;
23 print OBJECT
"chainload=$partuuid;m1n1/boot.bin')\n";
24 print OBJECT
"chosen.asahi,efi-system-partition=$partuuid\n";
27 system('kmutil configure-boot -c object.bin --raw --entry-point 2048 --lowest-virtual-address 0 -v /Volumes/Debian');