forked from pool/cloud-init
27 lines
1.4 KiB
Diff
27 lines
1.4 KiB
Diff
|
Index: cloud-init-0.7.5/cloudinit/sources/DataSourceAltCloud.py
|
||
|
===================================================================
|
||
|
--- cloud-init-0.7.5.orig/cloudinit/sources/DataSourceAltCloud.py
|
||
|
+++ cloud-init-0.7.5/cloudinit/sources/DataSourceAltCloud.py
|
||
|
@@ -116,7 +116,7 @@ class DataSourceAltCloud(sources.DataSou
|
||
|
'''
|
||
|
|
||
|
uname_arch = os.uname()[4]
|
||
|
- if uname_arch.startswith("arm") or uname_arch == "aarch64":
|
||
|
+ if uname_arch.startswith("arm") or uname_arch == "aarch64" or uname_arch.startswith("ppc"):
|
||
|
# Disabling because dmidecode in CMD_DMI_SYSTEM crashes kvm process
|
||
|
LOG.debug("Disabling AltCloud datasource on arm (LP: #1243287)")
|
||
|
return 'UNKNOWN'
|
||
|
Index: cloud-init-0.7.5/cloudinit/sources/DataSourceSmartOS.py
|
||
|
===================================================================
|
||
|
--- cloud-init-0.7.5.orig/cloudinit/sources/DataSourceSmartOS.py
|
||
|
+++ cloud-init-0.7.5/cloudinit/sources/DataSourceSmartOS.py
|
||
|
@@ -175,7 +175,7 @@ class DataSourceSmartOS(sources.DataSour
|
||
|
return False
|
||
|
|
||
|
uname_arch = os.uname()[4]
|
||
|
- if uname_arch.startswith("arm") or uname_arch == "aarch64":
|
||
|
+ if uname_arch.startswith("arm") or uname_arch == "aarch64" uname_arch.startswith("ppc"):
|
||
|
# Disabling because dmidcode in dmi_data() crashes kvm process
|
||
|
LOG.debug("Disabling SmartOS datasource on arm (LP: #1243287)")
|
||
|
return False
|