Blame SOURCES/0022-efiboot-don-t-error-on-unknown-type-with-DEV_ABBREV_.patch

80b73c
From 22b1a7477c5ef72821e6491c67ad85ca52c1ae85 Mon Sep 17 00:00:00 2001
80b73c
From: Peter Jones <pjones@redhat.com>
80b73c
Date: Thu, 21 Jun 2018 13:55:32 -0400
80b73c
Subject: [PATCH 22/24] efiboot: don't error on unknown type with
80b73c
 DEV_ABBREV_ONLY
80b73c
80b73c
Signed-off-by: Peter Jones <pjones@redhat.com>
80b73c
---
80b73c
 src/linux.c | 7 ++++++-
80b73c
 1 file changed, 6 insertions(+), 1 deletion(-)
80b73c
80b73c
diff --git a/src/linux.c b/src/linux.c
80b73c
index 6d20c2dbe25..7fac339c50e 100644
80b73c
--- a/src/linux.c
80b73c
+++ b/src/linux.c
80b73c
@@ -494,10 +494,15 @@ slash_err:
80b73c
                         dev->flags |= DEV_ABBREV_ONLY;
80b73c
                         i = last_successful_probe;
80b73c
                         current += pos;
80b73c
+
80b73c
+                        if (!*current || !strncmp(current, "block/", 6))
80b73c
+                                break;
80b73c
                 }
80b73c
         }
80b73c
 
80b73c
-        if (dev->interface_type == unknown) {
80b73c
+        if (dev->interface_type == unknown &&
80b73c
+            !(dev->flags & DEV_ABBREV_ONLY) &&
80b73c
+            !strcmp(current, "block/")) {
80b73c
                 efi_error("unknown storage interface");
80b73c
                 errno = ENOSYS;
80b73c
                 goto err;
80b73c
-- 
80b73c
2.17.1
80b73c