From e0aa8cc45aafae5fc19de633b24c9234f5585a8b Mon Sep 17 00:00:00 2001 From: SoonKyu Park Date: Wed, 23 May 2018 11:27:24 +0900 Subject: [PATCH] Add locale related environment varibale because language is not set to one specified in ks file env['LANG'] = 'language in ks' env['LC_ALL'] = 'language in ks' Change-Id: I8ce8930455af4ae0c6f3482e9c12a74194da02f8 --- mic/bootstrap.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mic/bootstrap.py b/mic/bootstrap.py index b51b79a..c3e8471 100644 --- a/mic/bootstrap.py +++ b/mic/bootstrap.py @@ -302,6 +302,11 @@ class Bootstrap(object): env = os.environ env['PATH'] = "%s:%s" % (PATH_BOOTSTRAP, env['PATH']) + cropts = configmgr.create + if cropts["ks"]: + lang = cropts["ks"].handler.lang.lang + env['LANG'] = lang + env['LC_ALL'] = lang retcode = 0 gloablmounts = None -- 2.7.4