2013-06-07 18:03:56 +00:00
|
|
|
From abd3c20d447a3c3ed28b9e73b59b5862d3eddf2d Mon Sep 17 00:00:00 2001
|
2012-07-25 13:34:55 +00:00
|
|
|
From: Matthew Garrett <mjg@redhat.com>
|
2013-05-02 20:54:52 +00:00
|
|
|
Date: Tue, 10 Jul 2012 11:58:52 -0400
|
2013-06-12 19:24:37 +00:00
|
|
|
Subject: [PATCH 447/482] Add support for crappy cd craparino
|
2013-05-02 20:54:52 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
grub-core/disk/efi/efidisk.c | 10 ++++++++++
|
|
|
|
1 file changed, 10 insertions(+)
|
2012-07-25 13:34:55 +00:00
|
|
|
|
|
|
|
diff --git a/grub-core/disk/efi/efidisk.c b/grub-core/disk/efi/efidisk.c
|
2013-06-07 18:03:56 +00:00
|
|
|
index ebd906e..08c303e 100644
|
2012-07-25 13:34:55 +00:00
|
|
|
--- a/grub-core/disk/efi/efidisk.c
|
|
|
|
+++ b/grub-core/disk/efi/efidisk.c
|
2013-06-07 18:03:56 +00:00
|
|
|
@@ -799,6 +799,16 @@ grub_efidisk_get_device_name (grub_efi_handle_t *handle)
|
2012-07-25 13:34:55 +00:00
|
|
|
if (! ldp)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
+ if (GRUB_EFI_DEVICE_PATH_TYPE (ldp) == GRUB_EFI_MEDIA_DEVICE_PATH_TYPE &&
|
|
|
|
+ (GRUB_EFI_DEVICE_PATH_SUBTYPE (ldp) == GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE))
|
|
|
|
+ {
|
|
|
|
+ ldp->type = GRUB_EFI_END_DEVICE_PATH_TYPE;
|
|
|
|
+ ldp->subtype = GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE;
|
|
|
|
+ ldp->length[0] = 4;
|
|
|
|
+ ldp->length[1] = 0;
|
|
|
|
+ ldp = find_last_device_path(dp);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
if (GRUB_EFI_DEVICE_PATH_TYPE (ldp) == GRUB_EFI_MEDIA_DEVICE_PATH_TYPE
|
|
|
|
&& (GRUB_EFI_DEVICE_PATH_SUBTYPE (ldp)
|
|
|
|
== GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE))
|
2013-05-02 20:54:52 +00:00
|
|
|
--
|
2013-06-07 18:03:56 +00:00
|
|
|
1.8.2.1
|
2013-05-02 20:54:52 +00:00
|
|
|
|