/[smeserver]/rpms/anaconda/sme8/0001-No-warnings-if-kernel-not-upgraded.patch
ViewVC logotype

Diff of /rpms/anaconda/sme8/0001-No-warnings-if-kernel-not-upgraded.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.2 by slords, Mon May 17 16:15:48 2010 UTC Revision 1.3 by slords, Mon Jun 7 14:25:13 2010 UTC
# Line 1  Line 1 
1  From f2089e64945943c6d433f5474ba6ff25c44dff39 Mon Sep 17 00:00:00 2001  From 40d3dfdbe56124715fcb30de312f7ba98a90e2ea Mon Sep 17 00:00:00 2001
2  From: Shad L. Lords <slords@mail.com>  From: Shad L. Lords <slords@mail.com>
3  Date: Mon, 19 Oct 2009 07:53:15 -0600  Date: Mon, 19 Oct 2009 07:53:15 -0600
4  Subject: [PATCH] No warnings if kernel not upgraded  Subject: [PATCH] No warnings if kernel not upgraded
# Line 25  index 940478d..87d4072 100644 Line 25  index 940478d..87d4072 100644
25       dosync()       dosync()
26    
27  diff --git a/yuminstall.py b/yuminstall.py  diff --git a/yuminstall.py b/yuminstall.py
28  index 14c3334..b9d0415 100644  index 14c3334..a5028b0 100644
29  --- a/yuminstall.py  --- a/yuminstall.py
30  +++ b/yuminstall.py  +++ b/yuminstall.py
31  @@ -1066,7 +1066,8 @@ class YumBackend(AnacondaBackend):  @@ -1066,7 +1066,8 @@ class YumBackend(AnacondaBackend):
# Line 33  index 14c3334..b9d0415 100644 Line 33  index 14c3334..b9d0415 100644
33           if foundModule == 1:           if foundModule == 1:
34               for (n, arch, tag) in kernelVersions:               for (n, arch, tag) in kernelVersions:
35  -                recreateInitrd(n, anaconda.rootPath)  -                recreateInitrd(n, anaconda.rootPath)
36  +                if os.access("/boot/System.map-%s" %(n,), os.X_OK):  +                if os.access("/boot/System.map-%s" %(n,), os.R_OK):
37  +                    recreateInitrd(n, anaconda.rootPath)  +                    recreateInitrd(n, anaconda.rootPath)
38    
39       def selectBestKernel(self, anaconda):       def selectBestKernel(self, anaconda):
# Line 43  index 14c3334..b9d0415 100644 Line 43  index 14c3334..b9d0415 100644
43           if len(self._installedDriverModules) > 0 and len(self._installedDriverModules) == len(anaconda.id.extraModules):           if len(self._installedDriverModules) > 0 and len(self._installedDriverModules) == len(anaconda.id.extraModules):
44               for (n, arch, tag) in self.kernelVersionList():               for (n, arch, tag) in self.kernelVersionList():
45  -                recreateInitrd(n, anaconda.rootPath)  -                recreateInitrd(n, anaconda.rootPath)
46  +                if os.access("/boot/System.map-%s" %(n,), os.X_OK):  +                if os.access("/boot/System.map-%s" %(n,), os.R_OK):
47  +                    recreateInitrd(n, anaconda.rootPath)  +                    recreateInitrd(n, anaconda.rootPath)
48           else:           else:
49               modulesList = filter(lambda m: m not in self._installedDriverModules, anaconda.id.extraModules)               modulesList = filter(lambda m: m not in self._installedDriverModules, anaconda.id.extraModules)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed