mirror of
https://github.com/systemd/systemd.git
synced 2025-01-21 22:04:01 +03:00
vconsole: more completely cover fedora legacy vconsole configuration
This commit is contained in:
parent
efb3237ee6
commit
ae509abccc
@ -171,6 +171,8 @@ int main(int argc, char **argv) {
|
||||
#ifdef TARGET_FEDORA
|
||||
if ((r = parse_env_file("/etc/sysconfig/i18n", NEWLINE,
|
||||
"SYSFONT", &vc_font,
|
||||
"SYSFONTACM", &vc_font_map,
|
||||
"UNIMAP", &vc_font_unimap,
|
||||
NULL)) < 0) {
|
||||
|
||||
if (r != -ENOENT)
|
||||
@ -179,11 +181,24 @@ int main(int argc, char **argv) {
|
||||
|
||||
if ((r = parse_env_file("/etc/sysconfig/keyboard", NEWLINE,
|
||||
"KEYTABLE", &vc_keymap,
|
||||
"KEYMAP", &vc_keymap,
|
||||
NULL)) < 0) {
|
||||
|
||||
if (r != -ENOENT)
|
||||
log_warning("Failed to read /etc/sysconfig/i18n: %s", strerror(-r));
|
||||
}
|
||||
|
||||
if (access("/etc/sysconfig/console/default.kmap", F_OK) >= 0) {
|
||||
char *t;
|
||||
|
||||
if (!(t = strdup("/etc/sysconfig/console/default.kmap"))) {
|
||||
log_error("Out of memory.");
|
||||
goto finish;
|
||||
}
|
||||
|
||||
free(vc_keymap);
|
||||
vc_keymap = t;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Override distribution-specific options with the
|
||||
|
Loading…
x
Reference in New Issue
Block a user