From b626012591216e2ae2cfc721e2c055e132ed781c Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sat, 5 Oct 2024 18:03:14 +0000 Subject: [PATCH] fix: make sure all default CentOS repos are disabled --- distro/centos/centos.go | 1 + 1 file changed, 1 insertion(+) diff --git a/distro/centos/centos.go b/distro/centos/centos.go index d70e749..09bbb07 100644 --- a/distro/centos/centos.go +++ b/distro/centos/centos.go @@ -121,6 +121,7 @@ func (centos CentOS) runs() (commands []string) { } cmdf("sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/* || true") + cmdf("sed -i 's/name/enabled=0\\nname/' /etc/yum.repos.d/* || true") for _, repo := range repos { cmdf("echo -e '%s' >> /etc/yum.repos.d/oot.repo\n", repo)