cloud-init/cloud-init-no-dmidecode-on-ppc64.patch
Robert Schweikert 9f75c2a543 Accepting request 244060 from home:k0da:ppc
- Make package Arch dependent otherwise package is not installable
  on arcoitectures where dmidecode is not available.
- Avoid to run dmidecode on PowerPC as well
  cloud-init-no-dmidecode-on-ppc64.patch

OBS-URL: https://build.opensuse.org/request/show/244060
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=23
2014-08-11 15:58:55 +00:00

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