mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 15:49:23 +00:00
fix several bugs in netboot and one bug in the command geometry.
This commit is contained in:
1 parent
bfbcbe125e
commit
687f54b6b8
7 files changed
+123
-24
No files matched your search
@@ -979,16 +979,27 @@ geometry_func (char *arg, int flags)
|
||||
char *ptr;
|
||||
#endif
|
||||
|
||||
/* Get the device number. */
|
||||
set_device (device);
|
||||
if (errnum)
|
||||
return 1;
|
||||
|
||||
/* Check for the geometry. */
|
||||
if (get_diskinfo (current_drive, &geom))
|
||||
{
|
||||
errnum = ERR_NO_DISK;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Attempt to read the first sector, because some BIOSes turns out not
|
||||
to support LBA even though they set the bit 0 in the support
|
||||
bitmap, only after reading something actually. */
|
||||
if (biosdisk (BIOSDISK_READ, current_drive, &geom, 0, 1, SCRATCHSEG))
|
||||
{
|
||||
errnum = ERR_READ;
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef GRUB_UTIL
|
||||
ptr = skip_to (0, device);
|
||||
if (*ptr)
|
||||
|
||||
Reference in new issue
Block a user