summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Teselkin <dteselkin@mirantis.com>2016-06-01 19:46:53 +0300
committerDmitry Teselkin <dteselkin@mirantis.com>2016-06-06 19:37:23 +0300
commit5b5f0f0b31f791780d16cf06da20377fe979db1d (patch)
tree731273b8703a54048af880382d2820da3d386586
parent214a08ecd8511b78f1f18d04694cd19295fdd1ab (diff)
Reconfigure locales noninteractively
Notes
Notes (review): Code-Review+2: Sergii Golovatiuk <sgolovatiuk@mirantis.com> Code-Review+1: Maksim Malchuk <mmalchuk@mirantis.com> Code-Review+2: Sergey Kulanov <skulanov@mirantis.com> Workflow+1: Sergey Kulanov <skulanov@mirantis.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Thu, 09 Jun 2016 10:03:05 +0000 Reviewed-on: https://review.openstack.org/324018 Project: openstack/fuel-main Branch: refs/heads/master
-rw-r--r--sandbox.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/sandbox.mk b/sandbox.mk
index 4bc3962..4a03731 100644
--- a/sandbox.mk
+++ b/sandbox.mk
@@ -194,7 +194,11 @@ sudo cp /etc/resolv.conf $(SANDBOX_UBUNTU)/etc/resolv.conf
194if [ -e $(SANDBOX_UBUNTU)/etc/hosts ]; then sudo cp -a $(SANDBOX_UBUNTU)/etc/hosts $(SANDBOX_UBUNTU)/etc/hosts.orig; fi 194if [ -e $(SANDBOX_UBUNTU)/etc/hosts ]; then sudo cp -a $(SANDBOX_UBUNTU)/etc/hosts $(SANDBOX_UBUNTU)/etc/hosts.orig; fi
195sudo cp /etc/hosts $(SANDBOX_UBUNTU)/etc/hosts 195sudo cp /etc/hosts $(SANDBOX_UBUNTU)/etc/hosts
196echo "Generating utf8 locale" 196echo "Generating utf8 locale"
197sudo chroot $(SANDBOX_UBUNTU) /bin/sh -c 'locale-gen en_US.UTF-8; dpkg-reconfigure locales' 197sudo chroot $(SANDBOX_UBUNTU) /usr/bin/env -i \
198 LC_ALL=C \
199 DEBIAN_FRONTEND=noninteractive \
200 DEBCONF_NONINTERACTIVE_SEEN=true \
201 /bin/sh -c 'locale-gen en_US.UTF-8; dpkg-reconfigure locales'
198echo "Preparing directory for chroot local mirror" 202echo "Preparing directory for chroot local mirror"
199sudo mkdir -p $(SANDBOX_UBUNTU)/etc/apt/preferences.d/ 203sudo mkdir -p $(SANDBOX_UBUNTU)/etc/apt/preferences.d/
200echo "Generating pinning file for Ubuntu SandBox" 204echo "Generating pinning file for Ubuntu SandBox"