1a676a36e9
We target 14.04 which has the package name 'syslinux' >14.04 has the package name 'pxelinux' TrivialFix Backport: Liberty Change-Id: Id0f4f503257d62d9ce45be5eb8f4faa766244d0a
28 lines
733 B
Django/Jinja
28 lines
733 B
Django/Jinja
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
|
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
|
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
RUN yum -y install \
|
|
tftp-server \
|
|
syslinux-tftpboot \
|
|
&& yum clean all \
|
|
&& mkdir -p /tftpboot \
|
|
&& cp /var/lib/tftpboot/chain.c32 /tftpboot
|
|
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
|
|
RUN apt-get install -y --no-install-recommends \
|
|
tftpd-hpa \
|
|
syslinux-common \
|
|
syslinux \
|
|
&& apt-get clean \
|
|
&& mkdir -p /tftpboot \
|
|
&& cp /usr/lib/syslinux/pxelinux.0 /usr/lib/syslinux/chain.c32 /tftpboot
|
|
|
|
{% endif %}
|
|
|
|
COPY tftp-map-file /tftpboot/map-file
|
|
|
|
{{ include_footer }}
|