--- rpms/anaconda/sme8/0001-No-warnings-if-kernel-not-upgraded.patch 2009/10/22 14:43:11 1.1 +++ rpms/anaconda/sme8/0001-No-warnings-if-kernel-not-upgraded.patch 2011/05/05 17:50:37 1.6 @@ -1,7 +1,7 @@ -From 03805ae2c73904ef7b809ed687a471529775a3d5 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 50e6bb5..b7096a7 100644 +index efd3ab8..f587668 100644 --- a/yuminstall.py +++ b/yuminstall.py -@@ -1062,7 +1062,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.""" -@@ -1709,7 +1710,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.4.1