mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 06:25:37 +03:00
bootspec: also parse new 'beep' loader.conf variable
This commit is contained in:
parent
fdc5c04299
commit
d403d8f0d6
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user