Skip to content

Commit 6f760b9

Browse files
committed
rockylinux: disable mirrors and use vault repos
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent 1ff8587 commit 6f760b9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hack/scripts/rpm-init.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,10 @@ case "$pkgrelease" in
8383
fi
8484
;;
8585
esac
86+
87+
if [ "$pkgrelease" = rockylinux* ]; then
88+
# disable mirrors and use vault repos for better stability
89+
find /etc/yum.repos.d/ -name '*.repo' -exec sed -i \
90+
-e 's/^mirrorlist=.*$/#mirrorlist=disabled/' \
91+
-e 's|^#baseurl=.*$|baseurl=https://dl.rockylinux.org/vault/rocky/9/BaseOS/$basearch/os/|' {} \;
92+
fi

0 commit comments

Comments
 (0)