systemd now defaults to a font that cannot display non-ascii characters correctly. We have to tell it to use a better one.
Related: rhbz#869233 Related: rhbz#927564 Related: rhbz#889710
Signed-off-by: Vratislav Podzimek vpodzime@redhat.com --- pyanaconda/keyboard.py | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/pyanaconda/keyboard.py b/pyanaconda/keyboard.py index a012492..74b93d3 100755 --- a/pyanaconda/keyboard.py +++ b/pyanaconda/keyboard.py @@ -50,6 +50,8 @@ LOCALED_SERVICE = "org.freedesktop.locale1" LOCALED_OBJECT_PATH = "/org/freedesktop/locale1" LOCALED_IFACE = "org.freedesktop.locale1"
+DEFAULT_VC_FONT = "latarcyrheb-sun16" + class KeyboardConfigError(Exception): """Exception class for keyboard configuration related problems"""
@@ -189,6 +191,10 @@ def write_keyboard_config(keyboard, root, convert=True): try: with open(os.path.join(vcconf_dir, vcconf_file), "w") as fobj: fobj.write('KEYMAP="%s"\n' % keyboard.vc_keymap) + + # systemd now defaults to a font that cannot display non-ascii + # characters, so we have to tell it to use a better one + fobj.write('FONT="%s"\n' % DEFAULT_VC_FONT) except IOError as ioerr: errors.append("Cannot write vconsole configuration file")
@@ -208,6 +214,7 @@ def dracut_setup_args(keyboard):
args = set() args.add("vconsole.keymap=%s" % keyboard.vc_keymap) + args.add("vconsole.font=%s" % DEFAULT_VC_FONT)
return args
On Thu, May 09, 2013 at 10:03:02PM +0200, Vratislav Podzimek wrote:
systemd now defaults to a font that cannot display non-ascii characters correctly. We have to tell it to use a better one.
Related: rhbz#869233 Related: rhbz#927564 Related: rhbz#889710
Signed-off-by: Vratislav Podzimek vpodzime@redhat.com
pyanaconda/keyboard.py | 7 +++++++ 1 file changed, 7 insertions(+)
Ack! Thanks for figuring this out.
anaconda-patches@lists.fedorahosted.org