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:
parent
ed293e9569
commit
49979680bd
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user