fix several bugs in netboot and one bug in the command geometry.

This commit is contained in:
okuji committed 2000-02-12 07:00:47 +00:00
1 parent bfbcbe125e
commit 687f54b6b8
7 files changed
+123 -24

No files matched your search

+11
View File
@@ -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)