summaryrefslogtreecommitdiffstats
path: root/livecd.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-10-10 19:06:55 +0000
committerJeremy Katz <katzj@redhat.com>2007-10-10 19:06:55 +0000
commit8c7d3266c7720c3c642f3663c9de9a7cd638720a (patch)
treebd40108dc05773fbfc7d88660349bd311d473155 /livecd.py
parentc9945be0b668e18308fc6b5890ff85aec11d868b (diff)
downloadanaconda-8c7d3266c7720c3c642f3663c9de9a7cd638720a.tar.gz
anaconda-8c7d3266c7720c3c642f3663c9de9a7cd638720a.tar.xz
anaconda-8c7d3266c7720c3c642f3663c9de9a7cd638720a.zip
2007-10-10 Jeremy Katz <katzj@redhat.com>
* livecd.py (LiveCDCopyBackend.doPostInstall): Copy over modprobe.conf from the live system
Diffstat (limited to 'livecd.py')
-rw-r--r--livecd.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/livecd.py b/livecd.py
index 3e690ce0b..e42b0717c 100644
--- a/livecd.py
+++ b/livecd.py
@@ -314,6 +314,11 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
f = open(anaconda.rootPath + "/etc/mtab", "w+")
f.write(anaconda.id.fsset.mtab())
f.close()
+
+ # copy over the modprobe.conf
+ if os.path.exists("/etc/modprobe.conf"):
+ shutil.copyfile("/etc/modprobe.conf",
+ anaconda.rootPath + "/etc/modprobe.conf")
# rebuild the initrd(s)
vers = self.kernelVersionList(anaconda.rootPath)