* grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort

on first non-existant partition.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-05-09 18:59:35 +02:00
parent d8ce999501
commit dd94a3df9d
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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);