mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
Avoid consuming lots of space and time if the first partition is not near the start of the disk (Debian bug #619458, Ubuntu bug #691569).
This commit is contained in:
1 parent
7bdeb3987a
commit
58ed62d221
5 files changed
+27
-7
No files matched your search
+1
-3
@@ -426,10 +426,8 @@ setup (const char *dir,
|
||||
}
|
||||
|
||||
nsec = core_sectors;
|
||||
err = dest_partmap->embed (dest_dev->disk, &nsec,
|
||||
err = dest_partmap->embed (dest_dev->disk, &nsec, 2 * core_sectors,
|
||||
GRUB_EMBED_PCBIOS, §ors);
|
||||
if (nsec > 2 * core_sectors)
|
||||
nsec = 2 * core_sectors;
|
||||
|
||||
if (err)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user