Copy host environment file into cache
In an environment when a proxy has been configured for internet access (in /etc/environment), the cache prep will need to also be configured to make use of it. Currently the onlly way to work around this is to have a mirror which is accessible without using a proxy. This patch ensures that the /etc/environment file is copied into the LXC cache prior to executing anything in the chroot. This should ensure that the cache prep can use the same proxy that is configured on the host. Change-Id: I4deb7e0a35a0364ceb57b9a12f283ac7439d5e8a
This commit is contained in:
parent
193e6f2ef6
commit
eb16b2d905
@ -42,6 +42,7 @@ lxc_cache_map:
|
||||
- /etc/yum.repos.d/
|
||||
- /etc/yum/pluginconf.d/fastestmirror.conf
|
||||
- /etc/pki/rpm-gpg/
|
||||
- /etc/environment
|
||||
- /etc/localtime
|
||||
cache_prep_commands: |
|
||||
{{ lxc_cache_prep_pre_commands }}
|
||||
|
@ -47,6 +47,7 @@ lxc_cache_map:
|
||||
copy_from_host:
|
||||
- /etc/apt/sources.list
|
||||
- /etc/apt/apt.conf.d/
|
||||
- /etc/environment
|
||||
- /etc/localtime
|
||||
- /root/repo.keys
|
||||
cache_prep_commands: |
|
||||
|
Loading…
Reference in New Issue
Block a user