[PATCH 2/2] iutil: make getArch() return ppc64 on ppc64 (#736721)

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

 



In the past, yum considered ppc64's basearch to be 'ppc', but in F16
ppc64 basearch is 'ppc64'. This makes images.findFirstIsoImage() fail,
since lorax writes the basearch into .discinfo.

This changes the behavior of getArch to return ppc64 on ppc64, which
will allow ppc64-based installs to continue.

Note that this means that a ppc64 system will reject an image that has
'ppc' as its basearch. People intending to build hybrid 32/64 bit media
will have to find some way to work around that.
---
 pyanaconda/iutil.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/iutil.py b/pyanaconda/iutil.py
index 167a379..8375837 100644
--- a/pyanaconda/iutil.py
+++ b/pyanaconda/iutil.py
@@ -765,8 +765,10 @@ def getArch():
         return 'i386'
     elif isX86(bits=64):
         return 'x86_64'
-    elif isPPC():
+    elif isPPC(bits=32):
         return 'ppc'
+    elif isPPC(bits=64):
+        return 'ppc64'
     elif isAlpha():
         return 'alpha'
     elif isSparc():
-- 
1.7.6.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux