* grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
on first non-existant partition.
This commit is contained in:
parent
d8ce999501
commit
dd94a3df9d
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
|
||||
on first non-existant partition.
|
||||
|
||||
2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
|
||||
|
|
|
@ -596,7 +596,7 @@ linux_find_partition (char *dev, grub_disk_addr_t sector)
|
|||
|
||||
fd = open (real_dev, O_RDONLY);
|
||||
if (fd == -1)
|
||||
return 0;
|
||||
continue;
|
||||
close (fd);
|
||||
|
||||
start = find_partition_start (real_dev);
|
||||
|
|
Loading…
Reference in a new issue