diff options
author | Martin Sivak <msivak@redhat.com> | 2009-12-17 16:08:15 +0100 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2010-01-08 17:13:05 +0100 |
commit | 57a355bcb107054ddfb579a6ad79527511980809 (patch) | |
tree | 9b59383b87084ddc0d534ecb1c942b67a5f4036e /backend.py | |
parent | 406bc3cb0b3dff042942b72f26b4304affe30a13 (diff) | |
download | anaconda-57a355bcb107054ddfb579a6ad79527511980809.tar.gz anaconda-57a355bcb107054ddfb579a6ad79527511980809.tar.xz anaconda-57a355bcb107054ddfb579a6ad79527511980809.zip |
Install the driver discs according to what was loaded in stage1
Diffstat (limited to 'backend.py')
-rw-r--r-- | backend.py | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/backend.py b/backend.py index 5ddeb8cd7..8dd17a5ec 100644 --- a/backend.py +++ b/backend.py @@ -73,8 +73,8 @@ class AnacondaBackend: def copyFirmware(self, anaconda): # Multiple driver disks may be loaded, so we need to glob for all - # the firmware files in all the driver disk directories. - for f in glob.glob("/tmp/DD-*/firmware/*"): + # the firmware files in the common DD firmware directory + for f in glob.glob(DD_EXTRACTED+"/lib/firmware/*"): try: shutil.copyfile(f, "%s/lib/firmware/" % anaconda.rootPath) except IOError, e: @@ -94,15 +94,22 @@ class AnacondaBackend: has_iscsi_disk = True break - if anaconda.id.extraModules: - self.copyFirmware(anaconda) + #always copy the firmware files from DD + self.copyFirmware(anaconda) if anaconda.id.extraModules or has_iscsi_disk: for (n, arch, tag) in self.kernelVersionList(anaconda.rootPath): packages.recreateInitrd(n, anaconda.rootPath) - for d in glob.glob("/tmp/DD-*"): - shutil.copytree(d, "/root/" + os.path.basename(d)) + #copy RPMS + for d in glob.glob(DD_RPMS): + shutil.copytree(d, anaconda.rootPath + "/root/" + os.path.basename(d)) + + #copy modules and firmware + try: + shutil.copytree(DD_EXTRACTED, anaconda.rootPath + "/root/DD") + except IOError, e: + pass storage.writeEscrowPackets(anaconda) |