From 0397b887e7650b5404d1170cc51883065dfb626d Mon Sep 17 00:00:00 2001 From: Liran Rotenberg Date: Wed, 19 Jun 2024 15:30:38 +0300 Subject: [PATCH] Switch CentOS stream8 repos Since we still use it and the mirrorlist isn't pointing to the `vault` repos. A command added to switch the repos. Now they will point `vault`, letting us use `dnf` commands later on. Signed-off-by: Liran Rotenberg --- virt-v2v/warm/BUILD.bazel | 1 + 1 file changed, 1 insertion(+) diff --git a/virt-v2v/warm/BUILD.bazel b/virt-v2v/warm/BUILD.bazel index e9ce75e29..c566e1afe 100644 --- a/virt-v2v/warm/BUILD.bazel +++ b/virt-v2v/warm/BUILD.bazel @@ -28,6 +28,7 @@ container_run_and_extract( name = "appliance", commands = [ "set -x", + "sed -i 's|^#baseurl=http://mirror.centos.org/\\(.*\\)$|baseurl=http://vault.centos.org/\001|' /etc/yum.repos.d/*", "dnf -y update", "dnf -y install libguestfs-devel libguestfs-appliance libguestfs-xfs libguestfs-winsupport supermin", "depmod \\$(ls /lib/modules/ |tail -n1)",