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:
0f75aa1
)
Be more stringent on the criteria for not doing disk probes.
author
Peter Jones
<pjones@redhat.com>
Fri, 9 Feb 2018 16:16:47 +0000
(11:16 -0500)
committer
Peter Jones
<pjones@redhat.com>
Tue, 13 Feb 2018 16:15:51 +0000
(11:15 -0500)
This bit of the nvdimm code stops HD() paths from getting generated
right sometimes.
Signed-off-by: Peter Jones <pjones@redhat.com>
src/creator.c
patch
|
blob
|
history
diff --git
a/src/creator.c
b/src/creator.c
index
31f0e39
..
e7d172d
100644
(file)
--- a/
src/creator.c
+++ b/
src/creator.c
@@
-246,7
+246,8
@@
efi_va_generate_file_device_path_from_esp(uint8_t *buf, ssize_t size,
off += sz;
}
- if (!(options & EFIBOOT_ABBREV_FILE) && info.part_name) {
+ if ((!(options & EFIBOOT_ABBREV_FILE) && info.part_name) ||
+ ((options & EFIBOOT_ABBREV_HD) && ! info.part_name)) {
int disk_fd;
int saved_errno;
int rc;