From c7eea31ed8d2c138ff4ebe6e7c9ced3ba7341ab6 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 15 Aug 2012 13:20:02 +0100 Subject: [PATCH] [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 --- src/util/fixrom.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/fixrom.pl b/src/util/fixrom.pl index 8987b512..dcc38fe4 100755 --- a/src/util/fixrom.pl +++ b/src/util/fixrom.pl @@ -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();