@@ -266,18 +266,13 @@ kolla_build_blocks:
266
266
mkdir -p /etc/yum.repos.d.backup && \
267
267
tar -czf /etc/yum.repos.d.backup/repos.tar.gz -C /etc/yum.repos.d . && \
268
268
{% endif %}
269
- echo "===== Before sed modifications I =====" && \
270
- cat /etc/yum.repos.d/*.repo && \
271
269
{% for repo in stackhpc_yum_repos %}
272
270
sed -i -e '/\[{{ repo.tag }}\]/,/^\[/ s/^\(mirrorlist *=.*\)/#\1/g' \
273
271
-e '/\[{{ repo.tag }}\]/,/^\[/ s/^[# ]*\(baseurl *=.*\)/#\1/g' \
274
272
-e '/\[{{ repo.tag }}\]/,/^\[/ s/^[# ]*\(metalink *=.*\)/#\1/g' \
275
273
-e '/\[{{ repo.tag }}\]/,/^\[/ s|^\(name.*\)|\1\nbaseurl={{ repo.url }}|' /etc/yum.repos.d/{{ repo.file }}{% if not loop.last %} && \
276
274
{% endif %}
277
275
{% endfor %}
278
- && \
279
- echo "===== After sed modifications I =====" && \
280
- cat /etc/yum.repos.d/*.repo
281
276
{% else %}
282
277
RUN \
283
278
rm /etc/apt/sources.list && \
@@ -294,8 +289,6 @@ kolla_build_blocks:
294
289
{# fixme #}
295
290
{% if kolla_base_distro == 'rocky' %}
296
291
&& \
297
- echo "===== Before sed modifications II =====" && \
298
- cat /etc/yum.repos.d/*.repo && \
299
292
{% if stackhpc_kolla_clean_up_repo_mirrors | bool %}
300
293
tar -xzf /etc/yum.repos.d.backup/repos.tar.gz -C /etc/yum.repos.d && \
301
294
tar -czf /etc/yum.repos.d.backup/repos.tar.gz -C /etc/yum.repos.d . && \
@@ -307,9 +300,6 @@ kolla_build_blocks:
307
300
-e '/\[{{ repo.tag }}\]/,/^\[/ s/^[# ]*\(metalink *=.*\)/#\1/g' \
308
301
-e '/\[{{ repo.tag }}\]/,/^\[/ s|^\(name.*\)|\1\nbaseurl={{ repo.url }}|' /etc/yum.repos.d/{{ repo.file }}{% if not loop.last %} &&{% endif %} \
309
302
{% endfor %}
310
- && \
311
- echo "===== After sed modifications II =====" && \
312
- cat /etc/yum.repos.d/*.repo \
313
303
{% endif %}
314
304
# With the UCA keyring installed we can now add all repos.
315
305
base_ubuntu_package_sources_list : |
0 commit comments