Skip to content

Commit f17789f

Browse files
committed
Removing sources.d with ubuntu, since we dont want to point to internet
1 parent f772bb6 commit f17789f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

etc/kayobe/kolla.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,9 @@ kolla_build_blocks:
260260
{% endfor %}
261261
{% else %}
262262
RUN \
263-
rm /etc/apt/sources.list && \
264-
ls -lac /etc/apt/sources.list.d/ &&\
263+
cat /etc/apt/sources.list && \
264+
rm -f /etc/apt/sources.list && \
265+
rm -f /etc/apt/sources.list.d/* &&\
265266
{% if stackhpc_repo_mirror_auth_proxy_enabled | bool %}
266267
{# We lack the ca-certificates package at this stage, so don't verify the CA initially #}
267268
echo 'Acquire::https::Verify-Peer "false";' > /etc/apt/apt.conf.d/90no-verify-peer && \
@@ -293,9 +294,9 @@ kolla_build_blocks:
293294
COPY sources.list.ubuntu /etc/apt/sources.list.backup
294295
{% endif %}
295296
RUN \
297+
cat /etc/apt/sources.list && \
296298
rm /etc/apt/sources.list && \
297-
ls -lac /etc/apt/sources.list.d/ && \
298-
rm -f /etc/apt/sources.list.d/docker-ce.sources && \
299+
rm -f /etc/apt/sources.list.d/* && \
299300
rm -f /etc/apt/apt.conf.d/90no-verify-peer && \
300301
{% for repo in stackhpc_ubuntu_noble_repos %}
301302
echo '{{ repo }}' >> /etc/apt/sources.list {% if not loop.last %} && \

0 commit comments

Comments
 (0)