parent
c358d12ce3
commit
d0a983d25c
@ -1,25 +1,50 @@
|
|||||||
From 39826dc46fd4b165a3a5caee0463742d6de10311 Mon Sep 17 00:00:00 2001
|
From a297c582fe0dfb116273e043c7a5929860ad7372 Mon Sep 17 00:00:00 2001
|
||||||
From: tigro <tigro@msvsphere-os.ru>
|
From: tigro <tigro@msvsphere-os.ru>
|
||||||
Date: Mon, 15 Jul 2024 17:26:19 +0300
|
Date: Mon, 15 Jul 2024 17:26:19 +0300
|
||||||
Subject: [PATCH 16/16] Set cyrillic font by default in console
|
Subject: [PATCH 16/16] Set cyrillic font by default in console
|
||||||
|
|
||||||
---
|
---
|
||||||
pyanaconda/core/constants.py | 2 +-
|
pyanaconda/core/constants.py | 1 +
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
pyanaconda/modules/localization/installation.py | 7 +++++--
|
||||||
|
2 files changed, 6 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
diff --git a/pyanaconda/core/constants.py b/pyanaconda/core/constants.py
|
diff --git a/pyanaconda/core/constants.py b/pyanaconda/core/constants.py
|
||||||
index b4622f9..143daf6 100644
|
index b4622f9..2e58abc 100644
|
||||||
--- a/pyanaconda/core/constants.py
|
--- a/pyanaconda/core/constants.py
|
||||||
+++ b/pyanaconda/core/constants.py
|
+++ b/pyanaconda/core/constants.py
|
||||||
@@ -81,7 +81,7 @@ ANACONDA_CONFIG_TMP = "/run/anaconda/anaconda.conf"
|
@@ -82,6 +82,7 @@ ANACONDA_CONFIG_TMP = "/run/anaconda/anaconda.conf"
|
||||||
# NOTE: this should be LANG_TERRITORY.CODESET, e.g. en_US.UTF-8
|
|
||||||
DEFAULT_LANG = "ru_RU.UTF-8"
|
DEFAULT_LANG = "ru_RU.UTF-8"
|
||||||
|
|
||||||
-DEFAULT_VC_FONT = "eurlatgr"
|
DEFAULT_VC_FONT = "eurlatgr"
|
||||||
+DEFAULT_VC_FONT = "UniCyr_8x16"
|
+DEFAULT_VC_RU_FONT = "UniCyr_8x16"
|
||||||
|
|
||||||
DEFAULT_KEYBOARD = "us"
|
DEFAULT_KEYBOARD = "us"
|
||||||
|
|
||||||
|
diff --git a/pyanaconda/modules/localization/installation.py b/pyanaconda/modules/localization/installation.py
|
||||||
|
index 4ebff66..c4a24b0 100644
|
||||||
|
--- a/pyanaconda/modules/localization/installation.py
|
||||||
|
+++ b/pyanaconda/modules/localization/installation.py
|
||||||
|
@@ -21,7 +21,7 @@ import shutil
|
||||||
|
from pyanaconda.modules.common.errors.installation import LanguageInstallationError, \
|
||||||
|
KeyboardInstallationError
|
||||||
|
from pyanaconda.modules.common.task import Task
|
||||||
|
-from pyanaconda.core.constants import DEFAULT_VC_FONT
|
||||||
|
+from pyanaconda.core.constants import DEFAULT_VC_FONT, DEFAULT_VC_RU_FONT
|
||||||
|
from pyanaconda.modules.localization.localed import get_missing_keyboard_configuration
|
||||||
|
from pyanaconda.anaconda_loggers import get_module_logger
|
||||||
|
|
||||||
|
@@ -199,7 +199,10 @@ def write_vc_configuration(vc_keymap, root):
|
||||||
|
|
||||||
|
# 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)
|
||||||
|
+ if vc_keymap == "ru":
|
||||||
|
+ fobj.write('FONT="%s"\n' % DEFAULT_VC_RU_FONT)
|
||||||
|
+ else:
|
||||||
|
+ fobj.write('FONT="%s"\n' % DEFAULT_VC_FONT)
|
||||||
|
|
||||||
|
except IOError as ioerr:
|
||||||
|
msg = "Cannot write vconsole configuration file: {}".format(ioerr.strerror)
|
||||||
--
|
--
|
||||||
2.45.2
|
2.45.2
|
||||||
|
|
||||||
|
Loading…
Reference in new issue