From 86255c637f931e0a70f20c43957164eb20920ea5 Mon Sep 17 00:00:00 2001 From: SoonKyu Park Date: Wed, 23 May 2018 11:27:24 +0900 Subject: 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 -- cgit v1.2.3