summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-25 19:13:04 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-25 19:16:24 -0700
commit07eb1663bd31bcaf7a194db9bfb6bfe14b47eaa0 (patch)
tree5492fab5644175195f5ac20796ddd18544d202bd
parentbb519a95c0da9871fd99b068d00e96fd78cc8cc1 (diff)
downloadsyslinux-07eb1663bd31bcaf7a194db9bfb6bfe14b47eaa0.tar.gz
altmbr: cap at 439 bytes so the partition select byte follows
Cap altmbr at 439 bytes, so that the partition select byte is not part of the file. This means that: a) updating the altmbr doesn't clobber the configuration; b) it is easier to simply concatenate the select byte to the file. This also matches gptmbr behavior. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--NEWS2
-rwxr-xr-xmbr/checksize.pl2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index b032a412..bfc65e33 100644
--- a/NEWS
+++ b/NEWS
@@ -22,6 +22,8 @@ Changes in 3.81:
* Menu system: don't set the autocr flag on the serial
console.
* altmbr: fix handling of logical partitions.
+ * altmbr: cap at 439 bytes so the partition select byte isn't
+ part of the file.
Changes in 3.80:
* New shuffler mechanism and API.
diff --git a/mbr/checksize.pl b/mbr/checksize.pl
index 7d61bdfd..c1984dbf 100755
--- a/mbr/checksize.pl
+++ b/mbr/checksize.pl
@@ -30,7 +30,7 @@ if (!defined($maxsize)) {
} elsif ($file =~ /^isohdp[fp]x[^0-9a-z]/) {
$maxsize = $padsize = 432;
} elsif ($file =~ /^altmbr[^0-9a-z]/) {
- $maxsize = 439; $padsize = 440;
+ $maxsize = $padsize = 439;
} else {
die "$0: no default size for filename: $file\n";
}