From 9a9729dfecbc8538a2bedecdefeb0d82b1ea4142 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 2 Jul 2020 13:08:04 +0200 Subject: [PATCH] CentOS: Use mirrorlist.fedoraproject.org for EPEL mirrors --- mkosi | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mkosi b/mkosi index 472c142f9..a3946285e 100755 --- a/mkosi +++ b/mkosi @@ -1826,7 +1826,7 @@ def install_centos_old(args: CommandLineArguments, updates_url = f"mirrorlist=http://mirrorlist.centos.org/?release={args.release}&arch=x86_64&repo=updates" extras_url = f"mirrorlist=http://mirrorlist.centos.org/?release={args.release}&arch=x86_64&repo=extras" centosplus_url = f"mirrorlist=http://mirrorlist.centos.org/?release={args.release}&arch=x86_64&repo=centosplus" - epel_url = f"baseurl=http://download.fedoraproject.org/pub/epel/{epel_release}/x86_64" + epel_url = f"mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=epel-{epel_release}&arch=x86_64" with open(config_file, "w") as f: f.write(f"""\ @@ -1893,13 +1893,10 @@ def install_centos_new(args: CommandLineArguments, baseos_url = f"mirrorlist=http://mirrorlist.centos.org/?release={args.release}&arch=x86_64&repo=BaseOS" extras_url = f"mirrorlist=http://mirrorlist.centos.org/?release={args.release}&arch=x86_64&repo=extras" centosplus_url = f"mirrorlist=http://mirrorlist.centos.org/?release={args.release}&arch=x86_64&repo=centosplus" - epel_url = f"baseurl=http://download.fedoraproject.org/pub/epel/{epel_release}/Everything/x86_64" + epel_url = f"mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=epel-{epel_release}&arch=x86_64" with open(config_file, "w") as f: f.write(f"""\ -[main] -gpgcheck=1 - [AppStream] name=CentOS-{args.release} - AppStream {appstream_url} -- 2.47.2