mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-22 09:31:51 +00:00
[util] Fix up checksum in UNDI ROM header, if present
The UNDI ROM header does contain a checksum byte. Apparently no-one cares about this, since iPXE has left it as zero for years without anyone noticing. Since Option::ROM now understands the UNDI ROM header, we may as well fix up the checksum byte for the sake of completeness. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
69fa494280
commit
c7eea31ed8
@ -32,6 +32,7 @@ foreach my $romfile ( @romfiles ) {
|
||||
my $image = $rom;
|
||||
while ( $image ) {
|
||||
$image->pnp_header->fix_checksum() if $image->pnp_header;
|
||||
$image->undi_header->fix_checksum() if $image->undi_header;
|
||||
$image->ipxe_header->fix_checksum() if $image->ipxe_header;
|
||||
$image->fix_checksum();
|
||||
$image = $image->next_image();
|
||||
|
Loading…
Reference in New Issue
Block a user