summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-06-09 10:03:05 +0000
committerGerrit Code Review <review@openstack.org>2016-06-09 10:03:05 +0000
commit14f2a3eb77e7f01f3d1080023f750cf1db3ca859 (patch)
tree846bd4b58ecfa936a3facc12bed14388a322a0e4
parentdd4ebbabba04a00cf34c501d838f2e924cf24662 (diff)
parent5b5f0f0b31f791780d16cf06da20377fe979db1d (diff)
Merge "Reconfigure locales noninteractively"
-rw-r--r--sandbox.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/sandbox.mk b/sandbox.mk
index 50b62e5..0c386c3 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"