From b237f84a589d536d20b7e6866de3676d676f46d7 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Wed, 2 Apr 2008 14:55:28 -0400 Subject: Don't rebuild the initrds if no modules were installed (#439379). --- yuminstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit