diff --git a/cloud-init-no-dmidecode-on-ppc64.patch b/cloud-init-no-dmidecode-on-ppc64.patch new file mode 100644 index 0000000..5b48dcd --- /dev/null +++ b/cloud-init-no-dmidecode-on-ppc64.patch @@ -0,0 +1,26 @@ +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 diff --git a/cloud-init.changes b/cloud-init.changes index ffeb7a5..f97155d 100644 --- a/cloud-init.changes +++ b/cloud-init.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Sat Aug 9 12:35:16 UTC 2014 - dvlaeev@suse.com + +- 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 + +------------------------------------------------------------------- +Mon Jul 28 15:54:32 UTC 2014 - rschweikert@suse.com + +- declare rsyslog.d only for distros where it is created + fixes build error on SLE 11 + +------------------------------------------------------------------- +Mon Jul 28 15:14:02 UTC 2014 - rschweikert@suse.com + +- add dmidecode (pmtools SLE 11) as dependency (bnc #888345) + +------------------------------------------------------------------- +Tue Jul 22 22:31:17 UTC 2014 - dmueller@suse.com + +- fix typo in cloud.cfg (gowpart -> growpart) +- add cloudinit-datasources.patch: Fixes datasource list + ------------------------------------------------------------------- Mon Jul 7 17:21:54 UTC 2014 - rschweikert@suse.com diff --git a/cloud-init.spec b/cloud-init.spec index 15f07b4..72ad1c8 100644 --- a/cloud-init.spec +++ b/cloud-init.spec @@ -37,6 +37,8 @@ Patch5: openSUSEhostsTemplate.diff Patch6: dynamicInitCmd.diff # FIXME suseSetInitCmd.patch send upstream once the SUSE handlers are accepted Patch7: suseSetInitCmd.patch +Patch8: cloudinit-datasources.patch +Patch9: cloud-init-no-dmidecode-on-ppc64.patch BuildRequires: fdupes BuildRequires: filesystem BuildRequires: python-devel @@ -63,8 +65,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %define docdir %{_defaultdocdir}/%{name} %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +Requires: pmtools %else -BuildArch: noarch +%ifarch %ix86 x86_64 +Requires: dmidecode +%endif %endif %if 0%{?suse_version} && 0%{?suse_version} <= 1210 %define initsys sysvinit_suse @@ -124,6 +129,8 @@ Unit tests for the cloud-init tools %patch5 %patch6 %patch7 +%patch8 -p1 +%patch9 -p1 %if 0%{?suse_version} <= 1130 # disable ecdsa for SLE 11 (not available) @@ -223,11 +230,12 @@ popd %{systemd_prefix}/systemd/system/cloud-final.service %endif %if 0%{?suse_version} && 0%{?suse_version} > 1110 +%dir %{_sysconfdir}/rsyslog.d %{_sysconfdir}/rsyslog.d/21-cloudinit.conf %endif %dir %attr(0755, root, root) %{_localstatedir}/lib/cloud %dir %{docdir} -%dir %{_sysconfdir}/rsyslog.d + %files doc %defattr(-,root,root) diff --git a/cloud.cfg.suse b/cloud.cfg.suse index a37c69e..9f6fb6d 100644 --- a/cloud.cfg.suse +++ b/cloud.cfg.suse @@ -13,7 +13,7 @@ cloud_init_modules: - migrator - bootcmd - write-files - - gowpart + - growpart - resizefs - set_hostname - update_hostname diff --git a/cloudinit-datasources.patch b/cloudinit-datasources.patch new file mode 100644 index 0000000..3c1152f --- /dev/null +++ b/cloudinit-datasources.patch @@ -0,0 +1,13 @@ +Index: cloud-init-0.7.5/cloudinit/settings.py +=================================================================== +--- cloud-init-0.7.5.orig/cloudinit/settings.py ++++ cloud-init-0.7.5/cloudinit/settings.py +@@ -37,7 +37,7 @@ CFG_BUILTIN = { + 'OVF', + 'MAAS', + 'GCE', +- 'OpenStack' ++ 'OpenStack', + 'Ec2', + 'CloudSigma', + 'CloudStack',