* util/grub-mkimage.c (generate_image): Unify diskboot.img size message.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-03-06 11:36:39 +01:00
parent ef292a8775
commit bbc5a342eb
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
2012-03-05 Vladimir Serbinenko <phcoder@gmail.com> 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/net/http.c: Add TRANSLATORS comments. * grub-core/net/http.c: Add TRANSLATORS comments.

View file

@ -1288,7 +1288,8 @@ generate_image (const char *dir, const char *prefix,
boot_path = grub_util_get_path (dir, "diskboot.img"); boot_path = grub_util_get_path (dir, "diskboot.img");
boot_size = grub_util_get_image_size (boot_path); boot_size = grub_util_get_image_size (boot_path);
if (boot_size != GRUB_DISK_SECTOR_SIZE) if (boot_size != GRUB_DISK_SECTOR_SIZE)
grub_util_error ("%s", _("diskboot.img is not one sector size")); grub_util_error (_("diskboot.img size must be %u bytes"),
GRUB_DISK_SECTOR_SIZE);
boot_img = grub_util_read_image (boot_path); boot_img = grub_util_read_image (boot_path);