Skip to content

Commit

Permalink
Copy the "locale" into base container image
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cloudnull committed Mar 24, 2018
1 parent f855b75 commit e62de97
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vars/redhat-7.yml
Expand Up @@ -20,8 +20,10 @@ _lxc_cache_map:
arch: "{{ lxc_architecture_mapping.get( ansible_architecture ) }}"
release: 7
copy_from_host:
- /etc/default/locale
- /etc/environment
- /etc/localtime
- /etc/locale.conf
- /etc/protocols
- /etc/pki/rpm-gpg/
- /etc/yum/pluginconf.d/fastestmirror.conf
Expand Down
2 changes: 2 additions & 0 deletions vars/suse-42.yml
Expand Up @@ -22,8 +22,10 @@ _lxc_cache_map:
arch: "{{ lxc_architecture_mapping.get( ansible_architecture ) }}"
release: "42.3"
copy_from_host:
- /etc/default/locale
- /etc/environment
- /etc/localtime
- /etc/locale.conf
- /etc/protocols
- /etc/zypp/repos.d/repo-oss.repo
- /etc/zypp/repos.d/repo-update.repo
Expand Down
2 changes: 2 additions & 0 deletions vars/ubuntu-16.04.yml
Expand Up @@ -23,8 +23,10 @@ _lxc_cache_map:
- /etc/apt/sources.list
- /etc/apt/apt.conf.d/
- /etc/apt/preferences.d/
- /etc/default/locale
- /etc/environment
- /etc/localtime
- /etc/locale.conf
- /root/repo.keys
- /etc/protocols

Expand Down

0 comments on commit e62de97

Please sign in to comment.