duplicate locale setting under /etc/locale.conf
authorGui Chen <gui.chen@intel.com>
Thu, 8 May 2014 06:21:07 +0000 (02:21 -0400)
committeradmin <yuhuan.yang@samsung.com>
Thu, 4 Feb 2016 09:48:54 +0000 (17:48 +0800)
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 <gui.chen@intel.com>
mic/kickstart/__init__.py

index 3ce9bbb..8116da3 100644 (file)
@@ -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