summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-01-10 06:27:17 +0000
committerJeremy Katz <katzj@redhat.com>2003-01-10 06:27:17 +0000
commite568c1f01d517c39798695b0e94a06d30c7e123a (patch)
treee41660e635c1b86abc2d09c33fdefd9da0f59bb7 /packages.py
parent48aa1df3b80af5c71f4190fc9de8832a6c88f697 (diff)
downloadanaconda-e568c1f01d517c39798695b0e94a06d30c7e123a.tar.gz
anaconda-e568c1f01d517c39798695b0e94a06d30c7e123a.tar.xz
anaconda-e568c1f01d517c39798695b0e94a06d30c7e123a.zip
if we have a kernel package, use it to pass kudzu a kernel version to do
module searches for. this means that you can now boot with one set of boot images and install a different kernel and have it work.
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages.py b/packages.py
index 13dee6842..a2adc6ce6 100644
--- a/packages.py
+++ b/packages.py
@@ -966,8 +966,12 @@ def doPostInstall(method, id, intf, instPath):
log("Mount of /proc/bus/usb in chroot failed")
pass
-
argv = [ "/usr/sbin/kudzu", "-q" ]
+ if id.hdlist.has_key("kernel"):
+ ver = "%s-%s" %(id.hdlist["kernel"][rpm.RPMTAG_VERSION],
+ id.hdlist["kernel"][rpm.RPMTAG_RELEASE])
+ argv.extend(["-k", ver])
+
devnull = os.open("/dev/null", os.O_RDWR)
iutil.execWithRedirect(argv[0], argv, root = instPath,
stdout = devnull)