projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e22c567
)
efivars: if OsIndicationsSupported does not exist, assume that reboot-to-firmware...
author
Lennart Poettering
<lennart@poettering.net>
Thu, 23 Nov 2017 21:05:46 +0000
(22:05 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 24 Nov 2017 11:00:09 +0000
(12:00 +0100)
It's not advertised and hence not available.
Fixes: #7424
src/shared/efivars.c
patch
|
blob
|
history
diff --git
a/src/shared/efivars.c
b/src/shared/efivars.c
index cf2966fd5cb2b3685306ea6cb6c822dbbd60ef05..9ca51cf7507092070ad6065562879eadfd7e8ff9 100644
(file)
--- a/
src/shared/efivars.c
+++ b/
src/shared/efivars.c
@@
-119,6
+119,8
@@
int efi_reboot_to_firmware_supported(void) {
return -EOPNOTSUPP;
r = efi_get_variable(EFI_VENDOR_GLOBAL, "OsIndicationsSupported", NULL, &v, &s);
+ if (r == -ENOENT) /* variable doesn't exist? it's not supported then */
+ return -EOPNOTSUPP;
if (r < 0)
return r;
if (s != sizeof(uint64_t))