diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-05-25 19:13:04 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-25 19:16:24 -0700 |
commit | 07eb1663bd31bcaf7a194db9bfb6bfe14b47eaa0 (patch) | |
tree | 5492fab5644175195f5ac20796ddd18544d202bd | |
parent | bb519a95c0da9871fd99b068d00e96fd78cc8cc1 (diff) | |
download | syslinux-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-- | NEWS | 2 | ||||
-rwxr-xr-x | mbr/checksize.pl | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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"; } |