From 1ce3e36f76281fd2604753440922f5afe052abe2 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sun, 1 Dec 2024 07:21:51 -0500 Subject: [PATCH] roles/bodhi2: Set EPEL to use zstd repodata and disable unusable features Zstd repodata support was introduced in DNF quite some time ago, and is quite a bit faster and less resource intensive. Additionally, there is no point in producing sqlmd or DeltaRPMs when support for both has been removed from RHEL for a fair bit of time. Regardless, we should leave things mostly as-is for EPEL 9, and thus we retain older xz compression settings for that. Signed-off-by: Neal Gompa --- roles/bodhi2/backend/files/createrepo_c.ini | 42 ++++++++++++++------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/roles/bodhi2/backend/files/createrepo_c.ini b/roles/bodhi2/backend/files/createrepo_c.ini index 458fcd8cac..c93ae458c1 100644 --- a/roles/bodhi2/backend/files/createrepo_c.ini +++ b/roles/bodhi2/backend/files/createrepo_c.ini @@ -26,24 +26,38 @@ compatibility = False # Each section only inherits from DEFAULT, so `release` will not inherit from `prefix`. # 'release' take precedence over 'prefix' as it is more specific. [prefix.FEDORA-EPEL] -compatibility = True -updateinfo-compress-type = BZ2 -drpms_enabled = True -general-compress = False -# The following should be superflous as they are overridden by compatibility flag -repodata-compress-type = gz +compatibility = False +updateinfo-compress-type = ZSTD +drpms_enabled = False +general-compress = True +repodata-compress-type = zstd zchunk = False -sqlite_enabled = True +sqlite_enabled = False [prefix.FEDORA-EPEL-NEXT] -compatibility = True -updateinfo-compress-type = BZ2 -drpms_enabled = True -general-compress = False -# The following should be superflous as they are overridden by compatibility flag -repodata-compress-type = gz +compatibility = False +updateinfo-compress-type = ZSTD +drpms_enabled = False +general-compress = True +repodata-compress-type = zstd zchunk = False -sqlite_enabled = True +sqlite_enabled = False + +[release.EPEL-9] +updateinfo-compress-type = BZ2 +repodata-compress-type = xz +general-compress = True +zchunk = False +drpms_enabled = False +sqlite_enabled = False + +[release.EPEL-9N] +updateinfo-compress-type = BZ2 +repodata-compress-type = xz +general-compress = True +zchunk = False +drpms_enabled = False +sqlite_enabled = False [release.EPEL-8] updateinfo-compress-type = BZ2