mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-05 23:26:52 +00:00
* 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
@ -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>
|
2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
|
* 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);
|
fd = open (real_dev, O_RDONLY);
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
return 0;
|
continue;
|
||||||
close (fd);
|
close (fd);
|
||||||
|
|
||||||
start = find_partition_start (real_dev);
|
start = find_partition_start (real_dev);
|
||||||
|
Loading…
Reference in New Issue
Block a user