]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 13 Feb 2010 14:25:37 +0000 (15:25 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 13 Feb 2010 14:25:37 +0000 (15:25 +0100)
* util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.

ChangeLog
util/grub-mkrawimage.c

index 70353ec0c59295c5e770cd93735ed0fb248cdde1..ddbccd1be6f6fc1e0e442bf0f235ce8b79865f77 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
+
 2010-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Pass SIMPLE framebuffer size in bytes and not 64K blocks.
index 2316479e9e42f1b5463deb47e486161be5ae9301..5e8948c2740b3031ecf7f350abeeb635f24d9440 100644 (file)
@@ -142,7 +142,7 @@ generate_image (const char *dir, char *prefix, FILE *out, char *mods[],
     }
 
   for (p = path_list; p; p = p->next)
-    total_module_size += (grub_util_get_image_size (p->name)
+    total_module_size += (ALIGN_UP (grub_util_get_image_size (p->name), 4)
                          + sizeof (struct grub_module_header));
 
   grub_util_info ("the total module size is 0x%x", total_module_size);