]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
CentOS: Use mirrorlist.fedoraproject.org for EPEL mirrors 413/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 2 Jul 2020 11:08:04 +0000 (13:08 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 2 Jul 2020 11:08:04 +0000 (13:08 +0200)
mkosi

diff --git a/mkosi b/mkosi
index 472c142f987adfbc9d471924e1bfb99df6a98620..a3946285e50dc69eb1ca05f210b36a4b27019f99 100755 (executable)
--- 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}