Signed-off-by: Dennis Gilmore dennis@ausil.us --- blivet/arch.py | 10 ++++++++++ blivet/platform.py | 2 ++ 2 files changed, 12 insertions(+)
diff --git a/blivet/arch.py b/blivet/arch.py index cbbf5e6..b16b3fc 100644 --- a/blivet/arch.py +++ b/blivet/arch.py @@ -162,6 +162,14 @@ def getPPCMacBook():
return False
+def isAARCH64(): + """ + :return: True if the hardware supports Aarch64, False otherwise. + :rtype: boolean + + """ + return os.uname()[4] == 'aarch64' + def getARMMachine(): """ :return: The ARM processor variety type, or None if not ARM. @@ -325,6 +333,8 @@ def getArch(): return 'ppc' elif isPPC(bits=64): return 'ppc64' + elif arch.isAARCH64(): + return 'aarch64' elif isAlpha(): return 'alpha' elif isARM(): diff --git a/blivet/platform.py b/blivet/platform.py index 185d82e..f95aa22 100644 --- a/blivet/platform.py +++ b/blivet/platform.py @@ -381,6 +381,8 @@ def getPlatform(): return EFI() elif arch.isX86(): return X86() + elif arch.isAARCH64): + return EFI() elif arch.isARM(): armMachine = arch.getARMMachine() if armMachine == "omap":