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 /mbr/checksize.pl | |
parent | bb519a95c0da9871fd99b068d00e96fd78cc8cc1 (diff) | |
download | syslinux.git-07eb1663bd31bcaf7a194db9bfb6bfe14b47eaa0.tar.gz syslinux.git-07eb1663bd31bcaf7a194db9bfb6bfe14b47eaa0.tar.xz syslinux.git-07eb1663bd31bcaf7a194db9bfb6bfe14b47eaa0.zip |
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>
Diffstat (limited to 'mbr/checksize.pl')
-rwxr-xr-x | mbr/checksize.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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"; } |