File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -240,19 +240,23 @@ RUN cat /tmp/kolla_bashrc >> /etc/bash.bashrc \
240
240
{% if base_distro == 'debian' %}
241
241
RUN rm -f /etc/apt/sources.list.d/debian.sources
242
242
COPY sources.list.{{ base_distro }} /etc/apt/sources.list
243
- {% elif ( base_distro == 'ubuntu' and base_arch == 'x86_64' ) %}
243
+ {% elif base_distro == 'ubuntu' %}
244
244
{% if base_distro_tag .startswith ('22.04' ) or base_distro_tag .startswith ('jammy' ) %}
245
+ RUN rm -f /etc/apt/sources.list
246
+ {% if base_arch == 'x86_64' %}
245
247
COPY sources.list.{{ base_distro }}.jammy /etc/apt/sources.list
248
+ {% else %}
249
+ COPY sources.list.{{ base_distro }}.jammy.{{ base_arch }} /etc/apt/sources.list
250
+ {% endif %}
246
251
{% elif base_distro_tag .startswith ('24.04' ) or base_distro_tag .startswith ('noble' ) %}
252
+ RUN rm -f /etc/apt/sources.list.d/{{ base_distro }}.sources
253
+ {% if base_arch == 'x86_64' %}
247
254
COPY sources.list.{{ base_distro }}.noble /etc/apt/sources.list
248
- {% endif %}
249
255
{% else %}
250
- {% if base_distro_tag .startswith ('22.04' ) or base_distro_tag .startswith ('jammy' )%}
251
- COPY sources.list.{{ base_distro }}.jammy.{{ base_arch }} /etc/apt/sources.list
252
- {% elif base_distro_tag .startswith ('24.04' ) or base_distro_tag .startswith ('noble' )%}
253
256
COPY sources.list.{{ base_distro }}.noble.{{ base_arch }} /etc/apt/sources.list
254
257
{% endif %}
255
258
{% endif %}
259
+ {% endif %}
256
260
COPY sources.list /etc/apt/sources.list.d/kolla-custom.list
257
261
{% endblock %}
258
262
You can’t perform that action at this time.
0 commit comments