[PATCH] Fix ps3 platform support (#497203)

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

 



---
 platform.py |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/platform.py b/platform.py
index ac62292..2244fee 100644
--- a/platform.py
+++ b/platform.py
@@ -346,6 +346,12 @@ class NewWorldPPC(PPC):
         else:
             return 0
 
+class PS3(PPC):
+    _diskType = parted.diskType["msdos"]
+
+    def __init__(self, anaconda):
+        PPC.__init__(self, anaconda)
+
 class S390(Platform):
     _bootloaderPackage = "s390utils"
 
@@ -435,10 +441,12 @@ def getPlatform(anaconda):
     elif iutil.isPPC():
         ppcMachine = iutil.getPPCMachine()
 
-        if (ppcMachine == "PMac" and iutil.getPPCMacGen() == "NewWorld") or ppcMachine == "PS3":
+        if (ppcMachine == "PMac" and iutil.getPPCMacGen() == "NewWorld"):
             return NewWorldPPC(anaconda)
         elif ppcMachine in ["iSeries", "pSeries"]:
             return IPSeriesPPC(anaconda)
+        elif ppcMachine == "PS3":
+            return PS3(anaconda)
         else:
             raise SystemError, "Unsupported PPC machine type"
     elif iutil.isS390():
-- 
1.6.1

_______________________________________________
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