public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/lorax-templates-rhel] eln: Handle relocation of packaged repo configs to /usr/share/dnf5
@ 2026-08-12 19:41 Adam Williamson
  0 siblings, 0 replies; only message in thread
From: Adam Williamson @ 2026-08-12 19:41 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/lorax-templates-rhel
            Branch : eln
            Commit : c901e3529ef96927aedf1d082ed76797260f633b
            Author : Adam Williamson <awilliam@redhat.com>
            Date   : 2026-08-12T15:18:05-04:00
            Stats  : +0/-6 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/lorax-templates-rhel/c/c901e3529ef96927aedf1d082ed76797260f633b?branch=eln

            Log:
            Handle relocation of packaged repo configs to /usr/share/dnf5

In Fedora 45+, packaged repo configs are moved to /usr/share/dnf5:
https://fedoraproject.org/wiki/Changes/RelocateRpmRepoConfigsToUsr
This adjusts lorax appropriately. We drop the renaming of the
repo directory entirely because it is no longer needed. It was
originally introduced in
https://github.com/rhinstaller/anaconda/commit/c51389518415d9182f01757314c7cfa272534557
to solve a problem involving upgrades. anaconda has not handled
upgrades since 2012. anaconda will be updated to not expect this
rename any more.

Signed-off-by: Adam Williamson <awilliam@redhat.com>

---
diff --git a/70-64k/runtime-postinstall.tmpl b/70-64k/runtime-postinstall.tmpl
index 142b05a..f2f2f0a 100644
--- a/70-64k/runtime-postinstall.tmpl
+++ b/70-64k/runtime-postinstall.tmpl
@@ -11,9 +11,6 @@ SOURCE_DATE_EPOCH = os.environ.get('SOURCE_DATE_EPOCH', str(int(time.time())))
 ## move_stubs()
 move usr/share/anaconda/list-harddrives-stub usr/bin/list-harddrives
 
-## move_repos()
-move etc/yum.repos.d etc/anaconda.repos.d
-
 ## Setup mdadm config to turn off homehost
 remove etc/mdadm.conf
 append etc/mdadm.conf "HOMEHOST <ignore>\n"

diff --git a/80-rhel/runtime-postinstall.tmpl b/80-rhel/runtime-postinstall.tmpl
index 142b05a..f2f2f0a 100644
--- a/80-rhel/runtime-postinstall.tmpl
+++ b/80-rhel/runtime-postinstall.tmpl
@@ -11,9 +11,6 @@ SOURCE_DATE_EPOCH = os.environ.get('SOURCE_DATE_EPOCH', str(int(time.time())))
 ## move_stubs()
 move usr/share/anaconda/list-harddrives-stub usr/bin/list-harddrives
 
-## move_repos()
-move etc/yum.repos.d etc/anaconda.repos.d
-
 ## Setup mdadm config to turn off homehost
 remove etc/mdadm.conf
 append etc/mdadm.conf "HOMEHOST <ignore>\n"

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-12 19:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-12 19:41 [rpms/lorax-templates-rhel] eln: Handle relocation of packaged repo configs to /usr/share/dnf5 Adam Williamson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox