summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-09-29 10:54:15 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2011-09-29 10:54:15 +0200
commit71ac8e4223a5ab0afa69ac18967b7b4fc8c734bf (patch)
tree14a8523ab7d4b24358ed9bb225ee0dfe9bf2d095
parent343c4c7d65aa2f47337749f1a2a11a76c1611be9 (diff)
downloadkanotix-71ac8e4223a5ab0afa69ac18967b7b4fc8c734bf.zip
kanotix-71ac8e4223a5ab0afa69ac18967b7b4fc8c734bf.tar.gz
delete ISO9660 partition entry from MBR-partition-table
-rwxr-xr-xisohybrid-acritox4
1 files changed, 4 insertions, 0 deletions
diff --git a/isohybrid-acritox b/isohybrid-acritox
index 0d1c6f9..440e756 100755
--- a/isohybrid-acritox
+++ b/isohybrid-acritox
@@ -141,6 +141,10 @@ $pentry = 2;
seek(FILE, 430+16*$pentry, SEEK_SET) or die "$0: $file: $!\n";
print FILE pack("CCCCCCCCVV", 0x80, 0xfe, 0xff, 0xff, $fstype, 0xfe, 0xff, 0xff, $imgsize/512, $fatsize/512);
+# Delete ISO9660 partition entry from MBR-partition-table
+seek(FILE, 430+16*1, SEEK_SET) or die "$0: $file: $!\n";
+print FILE "\0" x 16;
+
$imgsize += $fatsize;
# Done...