Create ironic-pxe container with ironic-base
/tftpboot directory should be writeable by ironic-conductor. TrivialFix Change-Id: I870a786d41a6feb8e0786b6e86a5caf1f9ceb079
This commit is contained in:
parent
c5c5c6e444
commit
56d24970fa
@ -1,4 +1,4 @@
|
|||||||
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}ironic-base:{{ tag }}
|
||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
|
||||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||||
@ -18,6 +18,7 @@ RUN apt-get install -y --no-install-recommends \
|
|||||||
syslinux \
|
syslinux \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& mkdir -p /tftpboot \
|
&& mkdir -p /tftpboot \
|
||||||
|
&& chown -R ironic: /tftpboot \
|
||||||
&& cp /usr/lib/syslinux/pxelinux.0 /usr/lib/syslinux/chain.c32 /tftpboot
|
&& cp /usr/lib/syslinux/pxelinux.0 /usr/lib/syslinux/chain.c32 /tftpboot
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user