return ($identifier, $size);
}
+die "This script must be run as root\n" if ($< != 0);
+
($identifier, $size) = find_identifier_before_free_space();
system("diskutil addPartition $identifier %EFI% LB 512MB");
chdir('/Volumes/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/');
+system('mkdir -p /Volumes/efi/vendorfw');
+system('cp /tmp/linux-firmware.tar /Volumes/efi/vendorfw/firmware.tar');
chdir('/var/root');
system('umount /Volumes/efi');