Fix /var/run for centos lxc containers
this is temporary until this get merged and the template gets updated https://github.com/lxc/lxc/pull/1286 Change-Id: I81d2bf010f598c28196de8bfd0984c19dc73c959
This commit is contained in:
parent
3f0c8f642f
commit
018aeb4c34
@ -53,6 +53,13 @@ lxc_cache_map:
|
|||||||
if [ -a /etc/resolv.conf ]; then
|
if [ -a /etc/resolv.conf ]; then
|
||||||
mv /etc/resolv.conf /etc/resolv.conf.org
|
mv /etc/resolv.conf /etc/resolv.conf.org
|
||||||
fi
|
fi
|
||||||
|
# TODO(mgariepy)
|
||||||
|
# Remove this once https://github.com/lxc/lxc/pull/1286 has merged.
|
||||||
|
if [ -d /var/run/ ]; then
|
||||||
|
mv /var/run/* /run/
|
||||||
|
rmdir /var/run
|
||||||
|
ln -sf ../run /var/run
|
||||||
|
fi
|
||||||
echo "nameserver {{ lxc_net_address }}" > /etc/resolv.conf
|
echo "nameserver {{ lxc_net_address }}" > /etc/resolv.conf
|
||||||
yum install -y {{ lxc_cache_distro_packages | join(' ') }}
|
yum install -y {{ lxc_cache_distro_packages | join(' ') }}
|
||||||
rm -f /usr/bin/python
|
rm -f /usr/bin/python
|
||||||
|
Loading…
Reference in New Issue
Block a user