Copy system localtime when creating container cache

Containers should use the same TZ setting as the host machine. This
change ensures that all containers created are using iheriting the
system's "/etc/localtime" which ensurs that the container and the host
are running on the same TZ at build time.

Change-Id: Ica571d9dc280bf46be475b6a83ada47fd3410d92
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2016-10-13 14:26:07 -05:00
parent ed293e9569
commit 49979680bd
No known key found for this signature in database
GPG Key ID: 69FEFFC5E2D9273F
3 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,7 @@ lxc_cache_map:
copy_from_host:
- /etc/yum.repos.d/
- /etc/pki/rpm-gpg/
- /etc/localtime
cache_prep_commands: |
if [ -a /etc/resolv.conf ]; then
mv /etc/resolv.conf /etc/resolv.conf.org

View File

@ -46,6 +46,7 @@ lxc_cache_map:
copy_from_host:
- /etc/apt/sources.list
- /etc/apt/apt.conf.d/
- /etc/localtime
- /root/repo.keys
cache_prep_commands: |
if [ -a /etc/resolv.conf ]; then

View File

@ -47,6 +47,7 @@ lxc_cache_map:
copy_from_host:
- /etc/apt/sources.list
- /etc/apt/apt.conf.d/
- /etc/localtime
- /root/repo.keys
cache_prep_commands: |
if [ -a /etc/resolv.conf ]; then