--- rpms/anaconda/sme8/0001-No-warnings-if-kernel-not-upgraded.patch 2010/05/17 16:15:48 1.2 +++ rpms/anaconda/sme8/0001-No-warnings-if-kernel-not-upgraded.patch 2011/09/17 20:44:05 1.8 @@ -1,7 +1,7 @@ -From f2089e64945943c6d433f5474ba6ff25c44dff39 Mon Sep 17 00:00:00 2001 +From cec120f81769c3baa639fa8394ae9b9b4278ac7b Mon Sep 17 00:00:00 2001 From: Shad L. Lords Date: Mon, 19 Oct 2009 07:53:15 -0600 -Subject: [PATCH] No warnings if kernel not upgraded +Subject: [PATCH 01/17] No warnings if kernel not upgraded --- bootloader.py | 5 ----- @@ -25,29 +25,29 @@ index 940478d..87d4072 100644 dosync() diff --git a/yuminstall.py b/yuminstall.py -index 14c3334..b9d0415 100644 +index efd3ab8..f587668 100644 --- a/yuminstall.py +++ b/yuminstall.py -@@ -1066,7 +1066,8 @@ class YumBackend(AnacondaBackend): +@@ -1085,7 +1085,8 @@ class YumBackend(AnacondaBackend): if foundModule == 1: for (n, arch, tag) in kernelVersions: - recreateInitrd(n, anaconda.rootPath) -+ if os.access("/boot/System.map-%s" %(n,), os.X_OK): ++ if os.access("/boot/System.map-%s" %(n,), os.R_OK): + recreateInitrd(n, anaconda.rootPath) def selectBestKernel(self, anaconda): """Find the best kernel package which is available and select it.""" -@@ -1725,7 +1726,8 @@ class YumBackend(AnacondaBackend): +@@ -1750,7 +1751,8 @@ class YumBackend(AnacondaBackend): # to the old method. if len(self._installedDriverModules) > 0 and len(self._installedDriverModules) == len(anaconda.id.extraModules): for (n, arch, tag) in self.kernelVersionList(): - recreateInitrd(n, anaconda.rootPath) -+ if os.access("/boot/System.map-%s" %(n,), os.X_OK): ++ if os.access("/boot/System.map-%s" %(n,), os.R_OK): + recreateInitrd(n, anaconda.rootPath) else: modulesList = filter(lambda m: m not in self._installedDriverModules, anaconda.id.extraModules) self.copyExtraModules(anaconda, modulesList) -- -1.5.5.6 +1.7.1