diff options
Diffstat (limited to 'debian/patches')
| -rw-r--r-- | debian/patches/azure-use-walinux-agent.patch | 17 | ||||
| -rw-r--r-- | debian/patches/ds-identify-behavior-xenial.patch | 32 | ||||
| -rw-r--r-- | debian/patches/series | 3 | ||||
| -rw-r--r-- | debian/patches/stable-release-no-jsonschema-dep.patch | 21 |
4 files changed, 73 insertions, 0 deletions
diff --git a/debian/patches/azure-use-walinux-agent.patch b/debian/patches/azure-use-walinux-agent.patch new file mode 100644 index 00000000..c50d664a --- /dev/null +++ b/debian/patches/azure-use-walinux-agent.patch @@ -0,0 +1,17 @@ +Description: Use walinux-agent rather than builtin fabric support + Upstream now uses the built-in support for instance initialization on Azure. + On a stable release, we want to continue to use the walinux-agent integration. + Upstream made this change under bug 1538522. +Forwarded: not-needed +Author: Scott Moser <smoser@ubuntu.com> +--- a/cloudinit/sources/DataSourceAzure.py ++++ b/cloudinit/sources/DataSourceAzure.py +@@ -185,7 +185,7 @@ if util.is_FreeBSD(): + ] + + BUILTIN_DS_CONFIG = { +- 'agent_command': AGENT_START_BUILTIN, ++ 'agent_command': AGENT_START, + 'data_dir': "/var/lib/waagent", + 'set_hostname': True, + 'hostname_bounce': { diff --git a/debian/patches/ds-identify-behavior-xenial.patch b/debian/patches/ds-identify-behavior-xenial.patch new file mode 100644 index 00000000..cfe8f9a8 --- /dev/null +++ b/debian/patches/ds-identify-behavior-xenial.patch @@ -0,0 +1,32 @@ +Description: Adjust behavior of ds-identify for SRU + To make this acceptable as a SRU we have changed ds-identify to + act in 'report only' mode, and to only 'warn' when it cloud-init + finds itself to be using a Ec2 Datasource on an unknown and + non AWS platform. +Forwarded: not-needed +Author: Scott Moser <smoser@ubuntu.com> +Bug-ubuntu: http://bugs.launchpad.net/bugs/1669675 +Bug-ubuntu: http://bugs.launchpad.net/bugs/1660385 + +--- a/tools/ds-identify ++++ b/tools/ds-identify +@@ -83,8 +83,8 @@ _DI_LOGGED="" + # set DI_MAIN='noop' in environment to source this file with no main called. + DI_MAIN=${DI_MAIN:-main} + +-DI_DEFAULT_POLICY="search,found=all,maybe=all,notfound=${DI_DISABLED}" +-DI_DEFAULT_POLICY_NO_DMI="search,found=all,maybe=all,notfound=${DI_ENABLED}" ++DI_DEFAULT_POLICY="report,found=all,maybe=all,notfound=${DI_ENABLED}" ++DI_DEFAULT_POLICY_NO_DMI="report,found=all,maybe=all,notfound=${DI_ENABLED}" + DI_DMI_CHASSIS_ASSET_TAG="" + DI_DMI_PRODUCT_NAME="" + DI_DMI_SYS_VENDOR="" +@@ -119,7 +119,7 @@ DI_ON_FOUND="" + DI_ON_MAYBE="" + DI_ON_NOTFOUND="" + +-DI_EC2_STRICT_ID_DEFAULT="true" ++DI_EC2_STRICT_ID_DEFAULT="warn" + + error() { + set -- "ERROR:" "$@"; diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 00000000..7e909afc --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,3 @@ +azure-use-walinux-agent.patch +ds-identify-behavior-xenial.patch +stable-release-no-jsonschema-dep.patch diff --git a/debian/patches/stable-release-no-jsonschema-dep.patch b/debian/patches/stable-release-no-jsonschema-dep.patch new file mode 100644 index 00000000..f8a11334 --- /dev/null +++ b/debian/patches/stable-release-no-jsonschema-dep.patch @@ -0,0 +1,21 @@ +Description: Remove the optional dependency on jsonschema for stable release. + To make this acceptable as a SRU we keep the same dependencies as are + in the stable release. + . + The '${python3:Depends}' in debian/control would automatically add the + dependency if it is seen in requirements.txt. +Forwarded: not-needed +Author: Scott Moser <smoser@ubuntu.com> + +--- a/requirements.txt ++++ b/requirements.txt +@@ -34,7 +34,8 @@ requests + jsonpatch + + # For validating cloud-config sections per schema definitions +-jsonschema ++## Do not add dependencies to a stable release (SRU). ++#jsonschema + + # For Python 2/3 compatibility + six |
