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>
* 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.
} 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";
}