[Bug 942896] New: YaST system keyboard settings should manage /etc/sysconfig/console
http://bugzilla.opensuse.org/show_bug.cgi?id=942896 Bug ID: 942896 Summary: YaST system keyboard settings should manage /etc/sysconfig/console Classification: openSUSE Product: openSUSE Factory Version: 201505* Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 Assignee: yast2-maintainers@suse.de Reporter: opensuse.lietuviu.kalba@gmail.com QA Contact: jsrain@suse.com Found By: --- Blocker: --- As https://features.opensuse.org/318355 is in progress, openSUSE will use console keymaps, that are convert from X keyboard layouts. Console keymaps are highly dependent on settings in /etc/sysconfig/console. New converted layout requires to set these values of variables: CONSOLE_UNICODEMAP="" CONSOLE_SCREENMAP="" CONSOLE_MAGIC="" CONSOLE_ENCODING="UTF-8" also CONSOLE_FONT must be changed to one, that is UTF-8 and covers as many characters. Fedora seems to use eurlatgr console font, that covers LatArCyrHeb and plus provides more special characters (according to https://fedoraproject.org/wiki/Changes/NewDefaultConsoleFont ). openSUSE has eurlatgr console font as file:///usr/share/kbd/consolefonts/eurlatgr.psfu.gz I tested it and it seems the best one! Even ←↓↑→ characters are displayed in console with this font. We also can set for most layouts: /etc/sysconfig/console CONSOLE_FONT="eurlatgr" EurLatGr provides greater coverage for Latin and Greek characters, but at the cost of Arabic, Cyrillic and Hebrew characters being dropped. So we can use LatArCyrHeb-16 (or LatArCyrHeb-14) font for layouts with Arabic, Cyrillic and Hebrew characters. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
Mindaugas Baranauskas
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c2
--- Comment #2 from Stefan Dirsch
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c3
--- Comment #3 from Stefan Dirsch
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c4
--- Comment #4 from Stefan Dirsch
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c5
--- Comment #5 from Stefan Dirsch
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c25
--- Comment #25 from Mindaugas Baranauskas
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c26
--- Comment #26 from Mindaugas Baranauskas
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c27
--- Comment #27 from Mindaugas Baranauskas
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c28
--- Comment #28 from Mindaugas Baranauskas
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c29
--- Comment #29 from Mindaugas Baranauskas
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c30
--- Comment #30 from Mindaugas Baranauskas
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c31
--- Comment #31 from Mindaugas Baranauskas
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c32
--- Comment #32 from Mindaugas Baranauskas
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c33
--- Comment #33 from Mindaugas Baranauskas
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c34
--- Comment #34 from Mindaugas Baranauskas
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c50
Liudas Ališauskas
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c52
--- Comment #52 from Ancor Gonzalez Sosa
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c53
--- Comment #53 from Ludwig Nussel
After reading all the comments again.
Thanks!
[...] d) Just for you to know (and because I'm sure it will bite us at some point), in other systems the console fonts are controlled via a FONT variable in /etc/vconsole.conf instead of using /etc/sysconfig/console. That's more consistent with the keyboard management but out of the scope for now.
Ack. At least it should be one place, no matter which.
Should we open a separate bug report for dracut?
Yes please. This bug is crowded enough :-) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c54
--- Comment #54 from Fabian Vogt
After reading all the comments again.
Some facts, correct me if I'm wrong:
a) During boot, keyboard and console fonts are applied by systemd-vconsole-setup.service
b) Changing the keyboard map implies updating the KEYMAP variable in /etc/vconsole.conf and regenerating initrd. That's what YaST does.
The keymap can also be set in /etc/sysconfig/keyboard.
c) In (open)SUSE, changing the console font implies updating /etc/sysconfig/console. That's what YaST does.
d) Just for you to know (and because I'm sure it will bite us at some point), in other systems the console fonts are controlled via a FONT variable in /etc/vconsole.conf instead of using /etc/sysconfig/console. That's more consistent with the keyboard management but out of the scope for now.
/etc/vconsole.conf is read by systemd-vconsole-setup as well. Values in there overwrite values set in /etc/sysconfig/{keyboard,console}. For reference: https://github.com/openSUSE/systemd/blob/openSUSE-Factory/src/vconsole/vcons...
These are my conclusions about the current status if this bug:
[...]
2.b) On a system start, systemd-vconsole-setup.service will be run in a very early stage and apply the changes.
During initrd, usually only one vconsole is active, tty1. systemd-vconsole-setup during initrd only sets up tty1, while the other ttys are set up by a udev rule calling systemd-vconsole-setup only for the new vconsole. For the dracut bug, that means that even if the initrd had the wrong file, tty2-ttyX should have the right keymap set already.
3) If we also change the keyboard map, then /etc/vconsole.conf is changed and initrd is regenerated. That's fine... in theory.
4) Due to a bug in dracut, the initrd generated in (3) is getting broken (keymap not included in the image) which is causing systemd-vconsole-setup.service execution to fail which means the console fonts are never applied.
So in order to completely fix the bug we need to fix dracut and, as a bonus track, ensure YaST restarts systemd-vconsole-setup.service after changing the font.
Anybody reader disagrees with my conclusions? If not, I will submit the new mappings right away and will start implementing the systemd-vconsole-setup.service restart.
Should we open a separate bug report for dracut?
I guess the issue in dracut is a bit too far from the original issue here, so yes please. I'll make a patch for dracut meanwhile and submit it with the right bug reference then. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c59
--- Comment #59 from Mindaugas Baranauskas
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c60
--- Comment #60 from Mindaugas Baranauskas
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c72
--- Comment #72 from Mindaugas Baranauskas
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c73
--- Comment #73 from Mindaugas Baranauskas
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c74
--- Comment #74 from Ancor Gonzalez Sosa
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c75
--- Comment #75 from Ancor Gonzalez Sosa
http://bugzilla.opensuse.org/show_bug.cgi?id=942896
http://bugzilla.opensuse.org/show_bug.cgi?id=942896#c76
Mindaugas Baranauskas
participants (1)
-
bugzilla_noreply@novell.com