mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 00:29:23 +00:00
fix the problem that savedefault doesn't work with Stage 1.5.
This commit is contained in:
1 parent
9417ebb550
commit
00865a8027
11 files changed
+55
-44
No files matched your search
+1
-5
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* GRUB -- GRand Unified Bootloader
|
||||
* Copyright (C) 1996 Erich Boleyn <erich@uruk.org>
|
||||
* Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -244,15 +244,11 @@ fat_read (char *buf, int len)
|
||||
if (size > len)
|
||||
size = len;
|
||||
|
||||
#ifndef STAGE1_5
|
||||
disk_read_func = disk_read_hook;
|
||||
#endif /* STAGE1_5 */
|
||||
|
||||
devread(sector, offset, size, buf);
|
||||
|
||||
#ifndef STAGE1_5
|
||||
disk_read_func = NULL;
|
||||
#endif /* STAGE1_5 */
|
||||
|
||||
len -= size;
|
||||
buf += size;
|
||||
|
||||
Reference in new issue
Block a user