mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-07 12:51:51 +00:00
Don't pass biosdev if not booted from BIOS disk
This commit is contained in:
parent
5408044f4c
commit
2343285528
@ -417,6 +417,9 @@ grub_multiboot_set_bootdev (void)
|
|||||||
biosdev = 0xffffffff;
|
biosdev = 0xffffffff;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (biosdev == 0xffffffff)
|
||||||
|
return;
|
||||||
|
|
||||||
dev = grub_device_open (0);
|
dev = grub_device_open (0);
|
||||||
if (dev && dev->disk && dev->disk->partition)
|
if (dev && dev->disk && dev->disk->partition)
|
||||||
{
|
{
|
||||||
|
@ -442,6 +442,9 @@ grub_multiboot_set_bootdev (void)
|
|||||||
biosdev = 0xffffffff;
|
biosdev = 0xffffffff;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (biosdev == 0xffffffff)
|
||||||
|
return;
|
||||||
|
|
||||||
dev = grub_device_open (0);
|
dev = grub_device_open (0);
|
||||||
if (dev && dev->disk && dev->disk->partition)
|
if (dev && dev->disk && dev->disk->partition)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user