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

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



---
 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:
-- 
1.6.1.3


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