On Oct 11, 2023, at 4:48 AM, Daniel Spannbauer <ds@marco.de> wrote: On a Leap 15.5 installation via autoyast there are always the opensuse repos configured.
How can I get rid of them? Simply delete them in a post script? Or is there a xml switch for the repos?
AFAIK the best option is disabling them in a post- or chroot-script. (If you remove them, they’ll be added back in future upgrades.). This is what I have: ==== <chroot-scripts config:type="list"> <script> <filename>disable-opensuse-org-repos.sh</filename> <source><![CDATA[#!/bin/sh # For openSUSE Leap, disable the sle-update and backports-update repos on # download.opensuse.org; these repos on our internal mirror ([redacted]) are # added under different names. Note that these two repo files are now part of # the openSUSE-release package, so if we deleted them, they would be recreated # by future updates. # The base product is Leap.prod for 15.3 and newer, which have these repos. It # was previously openSUSE.prod, and of course SLES is SLES.prod. if [ $(readlink /mnt/etc/products.d/baseproduct) = "Leap.prod" ]; then # The zypper lock will be active during installation, so modify the repo # files directly instead of using 'zypper mr'. perl -pi -e 's/^enabled=1/enabled=0/' /mnt/etc/zypp/repos.d/repo-{backports,sle}-update.repo fi ]]></source> </script> </chroot-scripts> ==== -Andrew