diff options
author | yyh <yyh@123.com> | 2017-03-13 18:14:23 +0800 |
---|---|---|
committer | SoonKyu Park <sk7.park@samsung.com> | 2017-04-04 21:32:31 +0900 |
commit | 741b24e8363b09b59445fc7d9bc6d9cc1baa1cd7 (patch) | |
tree | d35db957e7e237f00d69565caed6fa8115ea3196 | |
parent | 8be36481004b4440fff8cd95ae011f085b115afb (diff) | |
download | mic-741b24e8363b09b59445fc7d9bc6d9cc1baa1cd7.tar.gz mic-741b24e8363b09b59445fc7d9bc6d9cc1baa1cd7.tar.bz2 mic-741b24e8363b09b59445fc7d9bc6d9cc1baa1cd7.zip |
Copy ks setting lang to file /etc/config/mic_language for other use
Change-Id: Iaa62e8a2cc74bd868043044636b2ff1172036d0d
-rwxr-xr-x | mic/kickstart/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mic/kickstart/__init__.py b/mic/kickstart/__init__.py index 2ed35d0..fb0e4d8 100755 --- a/mic/kickstart/__init__.py +++ b/mic/kickstart/__init__.py @@ -167,6 +167,12 @@ class LanguageConfig(KickstartConfig): f.write("LANG=\"" + kslang.lang + "\"\n") f.close() + #cp ks lang setting to other file, then can access the file in %post section + fs.makedirs(self.path("/etc/config")) + f = open(self.path("/etc/config/mic_language"), "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 |