8f242a3
From fcc941289541a6667445b4c2104b697933b867e8 Mon Sep 17 00:00:00 2001
8f242a3
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan@danny.cz>
8f242a3
Date: Fri, 7 Jun 2019 09:31:01 +0200
8f242a3
Subject: [PATCH] initial PowerNV class support
8f242a3
8f242a3
---
8f242a3
 blivet/arch.py | 6 +++++-
8f242a3
 1 file changed, 5 insertions(+), 1 deletion(-)
8f242a3
8f242a3
diff --git a/blivet/arch.py b/blivet/arch.py
8f242a3
index 55ce8108..2cd978e9 100644
8f242a3
--- a/blivet/arch.py
8f242a3
+++ b/blivet/arch.py
8f242a3
@@ -72,7 +72,7 @@ def get_ppc_machine():
8f242a3
                 'Cell': 'pSeries',
8f242a3
                 'Momentum': 'pSeries',
8f242a3
                 'PS3': 'PS3',
8f242a3
-                'PowerNV': 'pSeries'
8f242a3
+                'PowerNV': 'PowerNV'
8f242a3
                 }
8f242a3
     machine = None
8f242a3
     platform = None
8f242a3
@@ -330,6 +330,10 @@ def is_ipseries():
8f242a3
     return is_ppc() and get_ppc_machine() in ("iSeries", "pSeries")
8f242a3
 
8f242a3
 
8f242a3
+def is_powernv():
8f242a3
+    return is_ppc() and get_ppc_machine() == "PowerNV"
8f242a3
+
8f242a3
+
8f242a3
 def get_arch():
8f242a3
     """
8f242a3
     :return: The hardware architecture