mirror of
https://github.com/systemd/systemd.git
synced 2025-01-02 14:44:12 +08:00
shared: add is_efiboot()
This commit is contained in:
parent
d2e83c23f5
commit
c1e5704657
@ -77,6 +77,10 @@ char **saved_argv = NULL;
|
||||
static volatile unsigned cached_columns = 0;
|
||||
static volatile unsigned cached_lines = 0;
|
||||
|
||||
bool is_efiboot(void) {
|
||||
return access("/sys/firmware/efi", F_OK) >= 0;
|
||||
}
|
||||
|
||||
size_t page_size(void) {
|
||||
static __thread size_t pgsz = 0;
|
||||
long r;
|
||||
|
@ -90,6 +90,8 @@ union dirent_storage {
|
||||
#define ANSI_HIGHLIGHT_YELLOW_ON "\x1B[1;33m"
|
||||
#define ANSI_HIGHLIGHT_OFF "\x1B[0m"
|
||||
|
||||
bool is_efiboot(void);
|
||||
|
||||
usec_t now(clockid_t clock);
|
||||
|
||||
dual_timestamp* dual_timestamp_get(dual_timestamp *ts);
|
||||
|
Loading…
Reference in New Issue
Block a user