From a4e9b4c46076bdac7adbc16cceef1d803c715756 Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Tue, 29 Mar 2016 10:17:20 -0400 Subject: [PATCH] Explicitly set language for DIB builds Diskimage-builder passes the localization environment variables through to the image being built. Ansible is explicitly setting "en_US.UTF-8" by default. Depending on the DIB build underway, and the base image, programs executing in that environment may fail to execute if localization is not present in the base image. As such, we will override the settings for the DIB step. Closes-Bug: #1563338 Change-Id: I05f0eeb71d3c227b2d8ece52c603c8cfe480c46c --- playbooks/roles/bifrost-create-dib-image/defaults/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playbooks/roles/bifrost-create-dib-image/defaults/main.yml b/playbooks/roles/bifrost-create-dib-image/defaults/main.yml index 108402afd..514fc4067 100644 --- a/playbooks/roles/bifrost-create-dib-image/defaults/main.yml +++ b/playbooks/roles/bifrost-create-dib-image/defaults/main.yml @@ -5,6 +5,9 @@ dib_env_vars: http_proxy: "{{ lookup('env','http_proxy') }}" https_proxy: "{{ lookup('env','https_proxy') }}" DIB_INSTALLTYPE_simple_init: repo + LANG: C + LC_ALL: C + LC_MESSAGES: C build_ramdisk: false dib_trace: false dib_uncompressed: false