Skip to content

Commit 3c71286

Browse files
author
Adrian Reber
authored
Merge pull request #75 from openhpc/2026-05-15-zypp-meta
ci: disable metalink in Leap installer and installed system
2 parents 488f6f9 + e4bc8cd commit 3c71286

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

ansible/roles/test/templates/grub.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set timeout=1
1919

2020
menuentry 'Install' {
2121
{%- if distro.startswith('leap15') %}
22-
linux linux ro autoyast=http://{{ repo }}/{{ distro }}-autoyast install=http://{{ repo }}/openSUSE-Leap-{{ distro[4:] }}-DVD-{{ arch }}-Current ifcfg={{ interface }}=dhcp textmode=1 display=1 proxy={{ proxy }} vnc=1 VNCPassword=12345678
22+
linux linux ro autoyast=http://{{ repo }}/{{ distro }}-autoyast install=http://{{ repo }}/openSUSE-Leap-{{ distro[4:] }}-DVD-{{ arch }}-Current ifcfg={{ interface }}=dhcp textmode=1 display=1 proxy={{ proxy }} vnc=1 VNCPassword=12345678 zyppargs="--option download.use_metalink=false"
2323
initrd initrd
2424
{% else %}
2525
linux vmlinuz ro ip={{ interface }}:dhcp inst.ks=http://{{ repo }}/{{ distro }}-kickstart

ansible/roles/test/templates/leap15.5-autoyast

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ curl -so /dev/null http://{{ repo }}/autoyast-progress/pre-install-leap15.5 || t
172172
<![CDATA[
173173
curl -so /dev/null http://{{ repo }}/autoyast-progress/post-started-leap15.5 || true
174174
systemctl stop sshd
175+
# Metalink causes zypper to use partial/range downloads which
176+
# breaks caching in the squid proxy.
177+
mkdir -p /etc/zypp
178+
echo "download.use_metalink = false" >> /etc/zypp/zypp.conf
175179
curl -so /dev/null http://{{ repo }}/autoyast-progress/zypper-update-leap15.5 || true
176180
zypper -n update
177181
curl -so /dev/null http://{{ repo }}/autoyast-progress/zypper-update-done-leap15.5 || true
@@ -200,6 +204,7 @@ curl -so /dev/null http://{{ repo }}/autoyast-progress/post-complete-leap15.5 ||
200204
<script>
201205
<source>
202206
<![CDATA[
207+
curl -so /dev/null http://{{ repo }}/autoyast-progress/init-scripts-leap15.5 || true
203208
systemctl enable sshd
204209
]]>
205210
</source>

0 commit comments

Comments
 (0)