summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-09-24 19:59:28 +0000
committerJeremy Katz <katzj@redhat.com>2007-09-24 19:59:28 +0000
commitd91acbce0025515466cd5648d046c91d79c31d97 (patch)
tree7cb9f92d7f85466635ff42d0007e2fe752cb2a73
parent7db9f520cdb9c9eb968a994884797749709502b2 (diff)
downloadanaconda-d91acbce0025515466cd5648d046c91d79c31d97.tar.gz
anaconda-d91acbce0025515466cd5648d046c91d79c31d97.tar.xz
anaconda-d91acbce0025515466cd5648d046c91d79c31d97.zip
2007-09-24 Jeremy Katz <katzj@redhat.com>
* image.py (CdromInstallMethod.filesDone): Copy media.repo if it exists
-rw-r--r--ChangeLog2
-rw-r--r--image.py5
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1d8556093..dfda2d9e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2007-09-24 Jeremy Katz <katzj@redhat.com>
+ * image.py (CdromInstallMethod.filesDone): Copy media.repo if it exists
+
* scripts/mk-images (foundakernel): And instead expand it out here
(makeinitrd): Check for firmware against expanded module list
diff --git a/image.py b/image.py
index 8aede97b4..74b3461f5 100644
--- a/image.py
+++ b/image.py
@@ -305,6 +305,11 @@ class CdromInstallMethod(ImageInstallMethod):
_("Unable to access the disc."))
def filesDone(self):
+ try:
+ shutil.copyfile("/mnt/source/media.repo", "%s/etc/yum.repos.d/%s-install-media.repo" %(self.rootPath, productName))
+ except Exception, e:
+ log.debug("Error copying media.repo: %s" %(e,))
+
# we're trying to unmount the CD here. if it fails, oh well,
# they'll reboot soon enough I guess :)
try: