diff options
author | Chris Lumens <clumens@redhat.com> | 2008-07-16 13:31:27 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2008-07-16 13:31:27 -0400 |
commit | c51389518415d9182f01757314c7cfa272534557 (patch) | |
tree | 5831d088c87ba06b7af51efc03e4131ed7742050 /scripts/upd-instroot | |
parent | 14a3eba0ab9a0942260780c6ed1b6441207899ba (diff) | |
download | anaconda-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-x | scripts/upd-instroot | 2 |
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* |