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