summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-11-05 20:30:06 +0000
committerJeremy Katz <katzj@redhat.com>2001-11-05 20:30:06 +0000
commit73b44a1c8941afd15b8b7c18f00df9c75e3786f5 (patch)
tree3d53ac7b92465493e333c021eee23de36610c313 /packages.py
parent43fb0ce10798c428f3319cc3da64e5c56f7d84b1 (diff)
downloadanaconda-73b44a1c8941afd15b8b7c18f00df9c75e3786f5.tar.gz
anaconda-73b44a1c8941afd15b8b7c18f00df9c75e3786f5.tar.xz
anaconda-73b44a1c8941afd15b8b7c18f00df9c75e3786f5.zip
merge fix from 7-2-branch to rerun mkinitrd when copying extra modules
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages.py b/packages.py
index b56052f9a..cc817b8b5 100644
--- a/packages.py
+++ b/packages.py
@@ -847,6 +847,24 @@ def copyExtraModules(instPath, comps, extraModules):
log("missing DD module %s (this may be okay)" %
fromFile)
+ log("recreating initrd")
+ recreateInitrd(n, instPath)
+
+
+#Recreate initrd for use when driver disks add modules
+def recreateInitrd (kernelTag, instRoot):
+ if iutil.getArch() == 'ia64':
+ initrd = "/boot/efi/initrd%s.img" % (kernelTag, )
+ else:
+ initrd = "/boot/initrd%s.img" % (kernelTag, )
+
+ iutil.execWithRedirect("/sbin/mkinitrd",
+ [ "/sbin/mkinitrd", "--ifneeded", "-f",
+ initrd, kernelTag[1:] ],
+ stdout = None, stderr = None,
+ searchPath = 1, root = instRoot)
+
+
def depmodModules(comps, instPath):
kernelVersions = comps.kernelVersionList()