From 7c122dfef81de8a910f3fc526c0bed719314b27b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 19 Jul 2019 18:28:16 +0200 Subject: [PATCH] bootctl: shortcut configuration file parsing --- src/boot/efi/boot.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index e0f7556..2a8035f 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) { -- 2.7.4