* grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix

BIOS disk check.
This commit is contained in:
Vladimir Serbinenko 2013-11-07 00:46:44 +01:00
parent 3f63b4d89f
commit c7f34744c6
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
BIOS disk check.
2013-11-07 Vladimir Serbinenko <phcoder@gmail.com> 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum

View file

@ -358,7 +358,7 @@ grub_cmd_legacy_kernel (struct grub_command *mycmd __attribute__ ((unused)),
dev = grub_device_open (0); dev = grub_device_open (0);
if (dev && dev->disk if (dev && dev->disk
&& dev->disk->dev->id == GRUB_DISK_DEVICE_BIOSDISK_ID && dev->disk->dev->id == GRUB_DISK_DEVICE_BIOSDISK_ID
&& dev->disk->dev->id >= 0x80 && dev->disk->dev->id <= 0x90) && dev->disk->id >= 0x80 && dev->disk->id <= 0x90)
{ {
struct grub_partition *part = dev->disk->partition; struct grub_partition *part = dev->disk->partition;
bsd_device = dev->disk->id - 0x80 - hdbias; bsd_device = dev->disk->id - 0x80 - hdbias;