From 37fdad8a72344b8e734d27d45835945ebc611f8a44e3d9e3b2f7a7a6e3fbdc6c Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Wed, 31 Oct 2018 14:41:17 +0000 Subject: [PATCH] - Add cloud-init-static-net.patch (boo#1114160) OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=123 --- cloud-init-static-net.patch | 12 ++++++++++++ cloud-init.changes | 5 +++++ cloud-init.spec | 5 ++++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 cloud-init-static-net.patch diff --git a/cloud-init-static-net.patch b/cloud-init-static-net.patch new file mode 100644 index 0000000..3f641fa --- /dev/null +++ b/cloud-init-static-net.patch @@ -0,0 +1,12 @@ +--- cloudinit/net/sysconfig.py.orig ++++ cloudinit/net/sysconfig.py +@@ -314,7 +314,8 @@ class Renderer(renderer.Renderer): + # ==> the following should not be set to 'static' + # but should remain 'none' + # if iface_cfg['BOOTPROTO'] == 'none': +- # iface_cfg['BOOTPROTO'] = 'static' ++ # For SUSE this is different set to "static" ++ iface_cfg['BOOTPROTO'] = 'static' + if subnet_is_ipv6(subnet): + mtu_key = 'IPV6_MTU' + iface_cfg['IPV6INIT'] = True diff --git a/cloud-init.changes b/cloud-init.changes index e450aac..78b4a8b 100644 --- a/cloud-init.changes +++ b/cloud-init.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 31 14:27:32 UTC 2018 - Robert Schweikert + +- Add cloud-init-static-net.patch (boo#1114160) + ------------------------------------------------------------------- Thu Oct 25 18:56:13 UTC 2018 - Robert Schweikert diff --git a/cloud-init.spec b/cloud-init.spec index 79e8408..af0774e 100644 --- a/cloud-init.spec +++ b/cloud-init.spec @@ -48,7 +48,9 @@ Patch38: cloud-init-sysconf-path.patch Patch39: cloud-init-sysconf-ethsetup.patch # FIXME (lp#1799709) # https://code.launchpad.net/~rjschwei/cloud-init/+git/cloud-init/+merge/357752 -Patch40: 0001-Fix-the-service-order-for-SUSE-distributions.patch +Patch40: 0001-Fix-the-service-order-for-SUSE-distributions.patch +# FIXME (lp# 1800854) +Patch41: cloud-init-static-net.patch BuildRequires: fdupes BuildRequires: filesystem @@ -194,6 +196,7 @@ Documentation and examples for cloud-init tools %patch38 %patch39 -p1 %patch40 -p1 +%patch41 %build %if 0%{?suse_version} && 0%{?suse_version} <= 1315