2008-06-07 Pavel Roskin <proski@gnu.org>
* util/biosdisk.c (open_device): Revert last change to the function, it broke installation. The sector needs to be different dependent on which device is opened.
This commit is contained in:
		
							parent
							
								
									c5e3cfba13
								
							
						
					
					
						commit
						dc20b0f9f5
					
				
					 2 changed files with 9 additions and 0 deletions
				
			
		|  | @ -1,3 +1,9 @@ | |||
| 2008-06-07  Pavel Roskin  <proski@gnu.org> | ||||
| 
 | ||||
| 	* util/biosdisk.c (open_device): Revert last change to the | ||||
| 	function, it broke installation.  The sector needs to be | ||||
| 	different dependent on which device is opened. | ||||
| 
 | ||||
| 2008-06-06  Robert Millan  <rmh@aybabtu.com> | ||||
| 
 | ||||
| 	Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the | ||||
|  |  | |||
|  | @ -298,6 +298,9 @@ open_device (const grub_disk_t disk, grub_disk_addr_t sector, int flags) | |||
| 
 | ||||
|     /* Make the buffer cache consistent with the physical disk.  */ | ||||
|     ioctl (fd, BLKFLSBUF, 0); | ||||
| 
 | ||||
|     if (is_partition) | ||||
|       sector -= disk->partition->start; | ||||
|   } | ||||
| #else /* ! __linux__ */ | ||||
|   fd = open (map[disk->id].device, flags); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue