Skip to content

Commit 721df66

Browse files
authored
Merge pull request #649 from stackhpc/fix-kolla-yml
fix build of rocky and ubuntu images
2 parents afcd80d + e6309a7 commit 721df66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

etc/kayobe/kolla.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,14 +322,14 @@ kolla_build_blocks:
322322
{% endif %}
323323
base_ubuntu_package_sources_list: |
324324
RUN \
325-
mv /etc/apt/sources.list{,.backup} && \
325+
mv /etc/apt/sources.list /etc/apt/sources.list.backup && \
326326
{% for repo in stackhpc_ubuntu_focal_repos %}
327327
echo '{{ repo }}' >> /etc/apt/sources.list {% if not loop.last %} && \
328328
{% endif %}
329329
{% endfor %}
330330
footer: |
331331
{% if stackhpc_kolla_clean_up_repo_mirrors | bool %}
332-
{% if kolla_base_distro == 'centos' %}
332+
{% if kolla_base_distro in ['centos', 'rocky'] %}
333333
RUN \
334334
tar -xzf /etc/yum.repos.d.backup/repos.tar.gz -C /etc/yum.repos.d && \
335335
if grep -r '{{ stackhpc_repo_mirror_url }}' /etc/yum.repos.d; then \

0 commit comments

Comments
 (0)