Copy the "locale" into base container image

The default file "locale" and the systemd "locale.conf" are not
always present in a container. While these files are not
required, without them we get noise in the journal.

> Example: http://paste.openstack.org/show/710781

This change simply includes the locales from the host into the base
container image which resolves the issue.

Change-Id: I2f3ec049b058aefbd7e05e289d3da0daeb85c74a
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2018-03-23 20:37:47 -05:00
parent f855b75ed8
commit e62de979cb
No known key found for this signature in database
GPG Key ID: 9443251A787B9FB3
3 changed files with 6 additions and 0 deletions

View File

@ -20,8 +20,10 @@ _lxc_cache_map:
arch: "{{ lxc_architecture_mapping.get( ansible_architecture ) }}" arch: "{{ lxc_architecture_mapping.get( ansible_architecture ) }}"
release: 7 release: 7
copy_from_host: copy_from_host:
- /etc/default/locale
- /etc/environment - /etc/environment
- /etc/localtime - /etc/localtime
- /etc/locale.conf
- /etc/protocols - /etc/protocols
- /etc/pki/rpm-gpg/ - /etc/pki/rpm-gpg/
- /etc/yum/pluginconf.d/fastestmirror.conf - /etc/yum/pluginconf.d/fastestmirror.conf

View File

@ -22,8 +22,10 @@ _lxc_cache_map:
arch: "{{ lxc_architecture_mapping.get( ansible_architecture ) }}" arch: "{{ lxc_architecture_mapping.get( ansible_architecture ) }}"
release: "42.3" release: "42.3"
copy_from_host: copy_from_host:
- /etc/default/locale
- /etc/environment - /etc/environment
- /etc/localtime - /etc/localtime
- /etc/locale.conf
- /etc/protocols - /etc/protocols
- /etc/zypp/repos.d/repo-oss.repo - /etc/zypp/repos.d/repo-oss.repo
- /etc/zypp/repos.d/repo-update.repo - /etc/zypp/repos.d/repo-update.repo

View File

@ -23,8 +23,10 @@ _lxc_cache_map:
- /etc/apt/sources.list - /etc/apt/sources.list
- /etc/apt/apt.conf.d/ - /etc/apt/apt.conf.d/
- /etc/apt/preferences.d/ - /etc/apt/preferences.d/
- /etc/default/locale
- /etc/environment - /etc/environment
- /etc/localtime - /etc/localtime
- /etc/locale.conf
- /root/repo.keys - /root/repo.keys
- /etc/protocols - /etc/protocols