summaryrefslogtreecommitdiff
path: root/isohybrid-acritox
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2012-02-27 11:12:29 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2012-02-27 11:12:29 +0100
commitefd1f97aac28cac211c594a7dc7de020d7b21a02 (patch)
treeda203d545d52cb92d1c5d13e19f2e60588589648 /isohybrid-acritox
parentf2c9544e50c8a9774a2fa7d86bf2ee59761a92e7 (diff)
downloadkanotix-efd1f97aac28cac211c594a7dc7de020d7b21a02.zip
kanotix-efd1f97aac28cac211c594a7dc7de020d7b21a02.tar.gz
hide the non-HFS EFI-partitions from the Mac OS Bootloader
Diffstat (limited to 'isohybrid-acritox')
-rwxr-xr-xisohybrid-acritox2
1 files changed, 2 insertions, 0 deletions
diff --git a/isohybrid-acritox b/isohybrid-acritox
index 60ee8eb..4e5b773 100755
--- a/isohybrid-acritox
+++ b/isohybrid-acritox
@@ -240,6 +240,8 @@ do
$bytes -= read(FILE, $name, $namelen);
$filename = unpack("Z*", $name);
print("file: $filename\n");
+ # hide the second ISOFS-EFI-partition from the Mac Bootloader by f***ing up the "EFI" directory entry
+ write_val(-$namelen, pack("Z*", ".PC")) if($filename eq "EFI");
$bytes -= read(FILE, $sua_head, 4);
($sig, $len, $version) = unpack("a[2]CC", $sua_head);