efivars: check whether we are booted with EFI before reading/writing to variables
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Jun 2018 16:47:37 +0000 (18:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 8 Oct 2018 19:40:44 +0000 (21:40 +0200)
commit337eed30e409db3770184b4d36eb6aeeb4e605fe
tree3cb6568e7b22c7452b44d41180d07ae1d88c4ea5
parentbb161cdc24632e2002d9e8151ead5686b521c942
efivars: check whether we are booted with EFI before reading/writing to variables

We do these checks only for the high-level calls as for the low-level
ones it might make sense in some exotic uses to read the host EFI data
from a container or so.
src/shared/efivars.c
src/test/test-boot-timestamps.c