summaryrefslogtreecommitdiffstats
path: root/scripts/upd-instroot
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-07-16 13:31:27 -0400
committerChris Lumens <clumens@redhat.com>2008-07-16 13:31:27 -0400
commitc51389518415d9182f01757314c7cfa272534557 (patch)
tree5831d088c87ba06b7af51efc03e4131ed7742050 /scripts/upd-instroot
parent14a3eba0ab9a0942260780c6ed1b6441207899ba (diff)
downloadanaconda-c51389518415d9182f01757314c7cfa272534557.tar.gz
anaconda-c51389518415d9182f01757314c7cfa272534557.tar.xz
anaconda-c51389518415d9182f01757314c7cfa272534557.zip
Look for repo config files in /etc/anaconda.repos.d.
yum wants to look in installroot+/etc/yum.repos.d for config files, which means it ends up looking under /mnt/sysimage. On fresh installs this is no problem because that path does not exist, but on upgrades it does. We end up with the wrong repo config objects in the upgrade case. The least hacky fix is to change where we store repo config files to a path that likely won't exist on installed systems.
Diffstat (limited to 'scripts/upd-instroot')
-rwxr-xr-xscripts/upd-instroot2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index 5953ed7c6..7be837807 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -1012,6 +1012,8 @@ for p in $DEST $DESTGR; do
mv $p/usr/sbin/anaconda $p/usr/bin/anaconda
mv $p/usr/lib/anaconda-runtime/lib* $p/usr/$LIBDIR
+ mv $p/etc/yum.repos.d $p/etc/anaconda.repos.d
+
# we only want the libunicode-lite stuff on the minimal image
if [ $p = $DESTGR ]; then
rm -f $p/usr/$LIBDIR/libunicode-lite*