[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Skip Apple ghosts

From: Andrey Borzenkov
Subject: Re: [PATCH] Skip Apple ghosts
Date: Tue, 24 Dec 2013 20:44:13 +0400

В Вт, 24/12/2013 в 14:26 +0100, Vladimir 'φ-coder/phcoder' Serbinenko
> Hello, all. It was discovered that on macs sometimes firmware defines
> ghost disks with vendor suffix. E.g.
> /ACPI(a0341d0,0)/PCI(2,1f)/UnknownMessaging(12)/EndEntire
> is a normal disks with partitions presented with HD(...) but then
> /ACPI(a0341d0,0)/PCI(2,1f)/UnknownMessaging(12)/MediaVendor(Apple)[0:
> ]/EndEntire
> is a ghost disk. It has as suffix a vendor path with empty vendor data.

Messaging subtype 12 is IPv4 Device Path. I suppose it is related to

> This is a problem because when chainloading on such disks GRUB can't
> find handle of partition as none is defined. I propose to dkip ghosts
> completely. This should be safe as the skip happens only for empty Apple
> vendor suffix and if the parent is already a known disk.

Hmm ... should not we simply ignore all unknown media types? They can be
added on case by case basis I guess.

diff --git a/grub-core/disk/efi/efidisk.c b/grub-core/disk/efi/efidisk.c
index e04203f..6dfdb0d 100644
--- a/grub-core/disk/efi/efidisk.c
+++ b/grub-core/disk/efi/efidisk.c
@@ -310,6 +310,7 @@ name_devices (struct grub_efidisk_data *devices)
              grub_efi_print_device_path (d->device_path);
              /* For now, ignore the others.  */
+             d->last_device_path = 0;

> Did anyone see anything similar?
> _______________________________________________
> Grub-devel mailing list
> address@hidden

Attachment: signature.asc
Description: This is a digitally signed message part

reply via email to

[Prev in Thread] Current Thread [Next in Thread]