diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-07-19 18:28:16 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-07-25 17:10:51 +0200 |
commit | 7c122dfef81de8a910f3fc526c0bed719314b27b (patch) | |
tree | 28962fc5dd9767bf77507e4387ee0e766f593f25 | |
parent | b461576de4d44ea8e5846c8c1ceeaad8f03df630 (diff) | |
download | systemd-7c122dfef81de8a910f3fc526c0bed719314b27b.tar.gz |
bootctl: shortcut configuration file parsing
-rw-r--r-- | src/boot/efi/boot.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index e0f75562c0..2a8035f0b2 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -1038,7 +1038,9 @@ static VOID config_defaults_load_from_file(Config *config, CHAR8 *content) { if (EFI_ERROR(parse_boolean(value, &on))) continue; + config->editor = on; + continue; } if (strcmpa((CHAR8 *)"auto-entries", key) == 0) { @@ -1046,7 +1048,9 @@ static VOID config_defaults_load_from_file(Config *config, CHAR8 *content) { if (EFI_ERROR(parse_boolean(value, &on))) continue; + config->auto_entries = on; + continue; } if (strcmpa((CHAR8 *)"auto-firmware", key) == 0) { @@ -1054,7 +1058,9 @@ static VOID config_defaults_load_from_file(Config *config, CHAR8 *content) { if (EFI_ERROR(parse_boolean(value, &on))) continue; + config->auto_firmware = on; + continue; } if (strcmpa((CHAR8 *)"console-mode", key) == 0) { |