From 9bc3ee3f917785f47bbdd1f5f90199bd73849622 Mon Sep 17 00:00:00 2001 From: Gui Chen Date: Thu, 8 May 2014 02:21:07 -0400 Subject: [PATCH] duplicate locale setting under /etc/locale.conf to be compatible with systemd and system V, /etc/sysconfig/i18n and /etc/locale.conf are both existed Fixes: #1745 Change-Id: I4d508d506161371765cfab6821da9a61223493ef Signed-off-by: Gui Chen --- mic/kickstart/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mic/kickstart/__init__.py b/mic/kickstart/__init__.py index 3ce9bbb..8116da3 100644 --- a/mic/kickstart/__init__.py +++ b/mic/kickstart/__init__.py @@ -163,6 +163,10 @@ class LanguageConfig(KickstartConfig): f.write("LANG=\"" + kslang.lang + "\"\n") f.close() + f = open(self.path("/etc/locale.conf"), "w+") + f.write("LANG=\"" + kslang.lang + "\"\n") + f.close() + class KeyboardConfig(KickstartConfig): """A class to apply a kickstart keyboard configuration to a system.""" @apply_wrapper -- 2.7.4