* util/grub-setup.c (setup): Remove duplicate call to embed. Fixes

crash when embedding onto filesystem.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-05-02 10:09:01 +02:00
parent bcb288ed17
commit 8db10f47fe
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
crash when embedding onto filesystem.
2012-05-02 Vladimir Serbinenko <phcoder@gmail.com> 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
* util/getroot.c (find_root_devices_from_poolname): Handle spaces in the * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the

View file

@ -481,8 +481,6 @@ setup (const char *dir,
N_("Your embedding area is unusually small. " N_("Your embedding area is unusually small. "
"core.img won't fit in it.")); "core.img won't fit in it."));
} }
err = dest_partmap->embed (dest_dev->disk, &nsec, maxsec,
GRUB_EMBED_PCBIOS, &sectors);
if (err) if (err)
{ {