[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH 2/2] If /etc/rpm/platform is found, move it out of the way.



This on looks good.

Regards,

Hans


On 06/01/2009 08:29 PM, Chris Lumens wrote:
---
  upgrade.py |    5 +++++
  1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/upgrade.py b/upgrade.py
index d5ecdd0..9d7081e 100644
--- a/upgrade.py
+++ b/upgrade.py
@@ -246,6 +246,11 @@ def upgradeMountFilesystems(anaconda):
          anaconda.id.storage.fsset.turnOnSwap(anaconda, upgrading=True)
          anaconda.id.storage.fsset.mkDevRoot(anaconda.rootPath)

+    # Move /etc/rpm/platform out of the way.
+    if os.path.exists(anaconda.rootPath + "/etc/rpm/platform"):
+        shutil.move(anaconda.rootPath + "/etc/rpm/platform",
+                    anaconda.rootPath + "/etc/rpm/platform.rpmsave")
+
      # if they've been booting with selinux disabled, then we should
      # disable it during the install as well (#242510)
      try:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]