1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

bootspec: also parse new 'beep' loader.conf variable

This commit is contained in:
Lennart Poettering 2022-02-11 14:18:18 +01:00
parent fdc5c04299
commit d403d8f0d6
2 changed files with 4 additions and 0 deletions

View File

@ -178,6 +178,7 @@ void boot_config_free(BootConfig *config) {
free(config->auto_firmware);
free(config->console_mode);
free(config->random_seed_mode);
free(config->beep);
free(config->entry_oneshot);
free(config->entry_default);
@ -245,6 +246,8 @@ static int boot_loader_read_conf(const char *path, BootConfig *config) {
r = free_and_strdup(&config->console_mode, p);
else if (streq(field, "random-seed-mode"))
r = free_and_strdup(&config->random_seed_mode, p);
else if (streq(field, "beep"))
r = free_and_strdup(&config->beep, p);
else {
log_notice("%s:%u: Unknown line \"%s\", ignoring.", path, line, field);
continue;

View File

@ -45,6 +45,7 @@ typedef struct BootConfig {
char *auto_firmware;
char *console_mode;
char *random_seed_mode;
char *beep;
char *entry_oneshot;
char *entry_default;