From: Vladimir 'phcoder' Serbinenko Date: Wed, 2 May 2012 08:09:01 +0000 (+0200) Subject: * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes X-Git-Tag: 2.00~281 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8db10f47fed094f188422be2cae57b4d912351cf;p=thirdparty%2Fgrub.git * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes crash when embedding onto filesystem. --- diff --git a/ChangeLog b/ChangeLog index cf926d708..dc8698ba4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-05-02 Vladimir Serbinenko + + * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes + crash when embedding onto filesystem. + 2012-05-02 Vladimir Serbinenko * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the diff --git a/util/grub-setup.c b/util/grub-setup.c index 9593957f0..dad1c15f8 100644 --- a/util/grub-setup.c +++ b/util/grub-setup.c @@ -481,8 +481,6 @@ setup (const char *dir, N_("Your embedding area is unusually small. " "core.img won't fit in it.")); } - err = dest_partmap->embed (dest_dev->disk, &nsec, maxsec, - GRUB_EMBED_PCBIOS, §ors); if (err) {