@@ -251,18 +251,13 @@ kolla_build_blocks:
251
251
mkdir -p /etc/yum.repos.d.backup && \
252
252
tar -czf /etc/yum.repos.d.backup/repos.tar.gz -C /etc/yum.repos.d . && \
253
253
{% endif %}
254
- echo "===== Before sed modifications I =====" && \
255
- cat /etc/yum.repos.d/*.repo && \
256
254
{% for repo in stackhpc_yum_repos %}
257
255
sed -i -e '/\[{{ repo.tag }}\]/,/^\[/ s/^\(mirrorlist *=.*\)/#\1/g' \
258
256
-e '/\[{{ repo.tag }}\]/,/^\[/ s/^[# ]*\(baseurl *=.*\)/#\1/g' \
259
257
-e '/\[{{ repo.tag }}\]/,/^\[/ s/^[# ]*\(metalink *=.*\)/#\1/g' \
260
258
-e '/\[{{ repo.tag }}\]/,/^\[/ s|^\(name.*\)|\1\nbaseurl={{ repo.url }}|' /etc/yum.repos.d/{{ repo.file }}{% if not loop.last %} && \
261
259
{% endif %}
262
260
{% endfor %}
263
- && \
264
- echo "===== After sed modifications I =====" && \
265
- cat /etc/yum.repos.d/*.repo
266
261
{% else %}
267
262
RUN \
268
263
rm /etc/apt/sources.list && \
@@ -279,8 +274,6 @@ kolla_build_blocks:
279
274
{# fixme #}
280
275
{% if kolla_base_distro == 'rocky' %}
281
276
&& \
282
- echo "===== Before sed modifications II =====" && \
283
- cat /etc/yum.repos.d/*.repo && \
284
277
{% if stackhpc_kolla_clean_up_repo_mirrors | bool %}
285
278
tar -xzf /etc/yum.repos.d.backup/repos.tar.gz -C /etc/yum.repos.d && \
286
279
tar -czf /etc/yum.repos.d.backup/repos.tar.gz -C /etc/yum.repos.d . && \
@@ -292,9 +285,6 @@ kolla_build_blocks:
292
285
-e '/\[{{ repo.tag }}\]/,/^\[/ s/^[# ]*\(metalink *=.*\)/#\1/g' \
293
286
-e '/\[{{ repo.tag }}\]/,/^\[/ s|^\(name.*\)|\1\nbaseurl={{ repo.url }}|' /etc/yum.repos.d/{{ repo.file }}{% if not loop.last %} &&{% endif %} \
294
287
{% endfor %}
295
- && \
296
- echo "===== After sed modifications II =====" && \
297
- cat /etc/yum.repos.d/*.repo \
298
288
{% endif %}
299
289
# With the UCA keyring installed we can now add all repos.
300
290
base_ubuntu_package_sources_list : |
0 commit comments