OSDN Git Service
(root)
/
android-x86
/
external-efivar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc11451
)
efiboot: don't error on unknown type with DEV_ABBREV_ONLY
author
Peter Jones
<pjones@redhat.com>
Thu, 21 Jun 2018 17:55:32 +0000
(13:55 -0400)
committer
Peter Jones
<pjones@redhat.com>
Thu, 21 Jun 2018 19:36:33 +0000
(15:36 -0400)
Signed-off-by: Peter Jones <pjones@redhat.com>
src/linux.c
patch
|
blob
|
history
diff --git
a/src/linux.c
b/src/linux.c
index
6d20c2d
..
7fac339
100644
(file)
--- a/
src/linux.c
+++ b/
src/linux.c
@@
-494,10
+494,15
@@
slash_err:
dev->flags |= DEV_ABBREV_ONLY;
i = last_successful_probe;
current += pos;
+
+ if (!*current || !strncmp(current, "block/", 6))
+ break;
}
}
- if (dev->interface_type == unknown) {
+ if (dev->interface_type == unknown &&
+ !(dev->flags & DEV_ABBREV_ONLY) &&
+ !strcmp(current, "block/")) {
efi_error("unknown storage interface");
errno = ENOSYS;
goto err;