summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-04-02 14:55:28 -0400
committerChris Lumens <clumens@redhat.com>2008-04-02 14:55:28 -0400
commitb237f84a589d536d20b7e6866de3676d676f46d7 (patch)
treee0da088ffe606017f79fbbc047ffa310383d66d5
parentd2be49d9e8212c85afd20e4fe093fbe24c17f9bf (diff)
downloadanaconda-b237f84a589d536d20b7e6866de3676d676f46d7.tar.gz
anaconda-b237f84a589d536d20b7e6866de3676d676f46d7.tar.xz
anaconda-b237f84a589d536d20b7e6866de3676d676f46d7.zip
Don't rebuild the initrds if no modules were installed (#439379).
-rw-r--r--yuminstall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yuminstall.py b/yuminstall.py
index cb23ec99c..6ec1e8882 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1725,7 +1725,7 @@ class YumBackend(AnacondaBackend):
# If we installed modules from packages using the new driver disk
# method, we still need to remake the initrd. Otherwise, drop back
# to the old method.
- if len(self._installedDriverModules) == len(anaconda.id.extraModules):
+ if len(self._installedDriverModules) > 0 and len(self._installedDriverModules) == len(anaconda.id.extraModules):
for (n, arch, tag) in self.kernelVersionList():
recreateInitrd(n, anaconda.rootPath)
else: