forked from pool/cloud-init
- add cloud-init-net-sysconfig-lp1665441.patch (lp#1665441)
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=80
This commit is contained in:
parent
12fd4cfe01
commit
0875a89e89
@ -1,7 +1,7 @@
|
|||||||
Index: cloud-init-0.7.6/cloudinit/config/cc_resolv_conf.py
|
Index: cloud-init-0.7.8/cloudinit/config/cc_resolv_conf.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- cloud-init-0.7.6.orig/cloudinit/config/cc_resolv_conf.py
|
--- cloud-init-0.7.8.orig/cloudinit/config/cc_resolv_conf.py
|
||||||
+++ cloud-init-0.7.6/cloudinit/config/cc_resolv_conf.py
|
+++ cloud-init-0.7.8/cloudinit/config/cc_resolv_conf.py
|
||||||
@@ -58,7 +58,7 @@ LOG = logging.getLogger(__name__)
|
@@ -58,7 +58,7 @@ LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
frequency = PER_INSTANCE
|
frequency = PER_INSTANCE
|
||||||
@ -11,11 +11,11 @@ Index: cloud-init-0.7.6/cloudinit/config/cc_resolv_conf.py
|
|||||||
|
|
||||||
|
|
||||||
def generate_resolv_conf(template_fn, params, target_fname="/etc/resolv.conf"):
|
def generate_resolv_conf(template_fn, params, target_fname="/etc/resolv.conf"):
|
||||||
Index: cloud-init-0.7.6/cloudinit/distros/__init__.py
|
Index: cloud-init-0.7.8/cloudinit/distros/__init__.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- cloud-init-0.7.6.orig/cloudinit/distros/__init__.py
|
--- cloud-init-0.7.8.orig/cloudinit/distros/__init__.py
|
||||||
+++ cloud-init-0.7.6/cloudinit/distros/__init__.py
|
+++ cloud-init-0.7.8/cloudinit/distros/__init__.py
|
||||||
@@ -41,7 +41,7 @@ OSFAMILIES = {
|
@@ -46,7 +46,7 @@ OSFAMILIES = {
|
||||||
'redhat': ['fedora', 'rhel'],
|
'redhat': ['fedora', 'rhel'],
|
||||||
'gentoo': ['gentoo'],
|
'gentoo': ['gentoo'],
|
||||||
'freebsd': ['freebsd'],
|
'freebsd': ['freebsd'],
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
|
Index: cloudinit/util.py
|
||||||
|
===================================================================
|
||||||
--- cloudinit/util.py.orig
|
--- cloudinit/util.py.orig
|
||||||
+++ cloudinit/util.py
|
+++ cloudinit/util.py
|
||||||
@@ -154,7 +154,7 @@ def target_path(target, path=None):
|
@@ -155,7 +155,7 @@ def target_path(target, path=None):
|
||||||
|
|
||||||
def decode_binary(blob, encoding='utf-8'):
|
def decode_binary(blob, encoding='utf-8'):
|
||||||
# Converts a binary type into a text type using given encoding.
|
# Converts a binary type into a text type using given encoding.
|
||||||
|
15
cloud-init-net-sysconfig-lp1665441.patch
Normal file
15
cloud-init-net-sysconfig-lp1665441.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
--- cloud-init-0.7.8.orig/cloudinit/net/sysconfig.py
|
||||||
|
+++ cloud-init-0.7.8/cloudinit/net/sysconfig.py
|
||||||
|
@@ -295,10 +295,10 @@ class Renderer(renderer.Renderer):
|
||||||
|
cls._render_subnet(iface_cfg, route_cfg, iface_subnets[0])
|
||||||
|
elif len(iface_subnets) > 1:
|
||||||
|
for i, iface_subnet in enumerate(iface_subnets,
|
||||||
|
- start=len(iface.children)):
|
||||||
|
+ start=len(iface_cfg.children)):
|
||||||
|
iface_sub_cfg = iface_cfg.copy()
|
||||||
|
iface_sub_cfg.name = "%s:%s" % (iface_name, i)
|
||||||
|
- iface.children.append(iface_sub_cfg)
|
||||||
|
+ iface_cfg.children.append(iface_sub_cfg)
|
||||||
|
cls._render_subnet(iface_sub_cfg, route_cfg, iface_subnet)
|
||||||
|
|
||||||
|
@classmethod
|
@ -1,6 +1,8 @@
|
|||||||
--- cloud-init-0.7.5/cloudinit/distros/__init__.py.orig 2014-09-16 11:00:52.192149797 +0200
|
Index: cloud-init-0.7.8/cloudinit/distros/__init__.py
|
||||||
+++ cloud-init-0.7.5/cloudinit/distros/__init__.py 2014-09-16 11:02:02.272874250 +0200
|
===================================================================
|
||||||
@@ -402,8 +402,11 @@
|
--- cloud-init-0.7.8.orig/cloudinit/distros/__init__.py
|
||||||
|
+++ cloud-init-0.7.8/cloudinit/distros/__init__.py
|
||||||
|
@@ -504,8 +504,11 @@ class Distro(object):
|
||||||
# about long names.
|
# about long names.
|
||||||
util.subp(['passwd', '-l', name])
|
util.subp(['passwd', '-l', name])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 27 11:45:05 UTC 2017 - dmueller@suse.com
|
||||||
|
|
||||||
|
- add cloud-init-net-sysconfig-lp1665441.patch (lp#1665441)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 20 10:00:42 CET 2017 - kukuk@suse.de
|
Mon Feb 20 10:00:42 CET 2017 - kukuk@suse.de
|
||||||
|
|
||||||
|
@ -55,6 +55,7 @@ Patch27: cloud-init-sysconfig-netpathfix.patch
|
|||||||
Patch28: zypp_add_repos.diff
|
Patch28: zypp_add_repos.diff
|
||||||
Patch29: datasourceLocalDisk.patch
|
Patch29: datasourceLocalDisk.patch
|
||||||
Patch30: cloud-init-handle-not-implemented-query.patch
|
Patch30: cloud-init-handle-not-implemented-query.patch
|
||||||
|
Patch32: cloud-init-net-sysconfig-lp1665441.patch
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: filesystem
|
BuildRequires: filesystem
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
@ -198,6 +199,7 @@ Unit tests for the cloud-init tools
|
|||||||
%patch28 -p0
|
%patch28 -p0
|
||||||
%patch29 -p0
|
%patch29 -p0
|
||||||
%patch30
|
%patch30
|
||||||
|
%patch32 -p1
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1210
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1210
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%endif
|
%endif
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
=== modified file 'cloudinit/config/cc_set_passwords.py'
|
=== modified file 'cloudinit/config/cc_set_passwords.py'
|
||||||
--- cloudinit/config/cc_set_passwords.py 2014-02-06 21:38:30 +0000
|
Index: cloudinit/config/cc_set_passwords.py
|
||||||
+++ cloudinit/config/cc_set_passwords.py 2014-06-24 18:39:33 +0000
|
===================================================================
|
||||||
@@ -136,7 +136,7 @@
|
--- cloudinit/config/cc_set_passwords.py.orig
|
||||||
|
+++ cloudinit/config/cc_set_passwords.py
|
||||||
|
@@ -147,7 +147,7 @@ def handle(_name, cfg, cloud, log, args)
|
||||||
util.write_file(ssh_util.DEF_SSHD_CFG, "\n".join(lines))
|
util.write_file(ssh_util.DEF_SSHD_CFG, "\n".join(lines))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -10,11 +12,11 @@
|
|||||||
cmd.append(cloud.distro.get_option('ssh_svcname', 'ssh'))
|
cmd.append(cloud.distro.get_option('ssh_svcname', 'ssh'))
|
||||||
cmd.append('restart')
|
cmd.append('restart')
|
||||||
if 'systemctl' in cmd: # Switch action ordering
|
if 'systemctl' in cmd: # Switch action ordering
|
||||||
|
Index: cloudinit/distros/__init__.py
|
||||||
=== modified file 'cloudinit/distros/__init__.py'
|
===================================================================
|
||||||
--- cloudinit/distros/__init__.py 2014-02-12 19:56:55 +0000
|
--- cloudinit/distros/__init__.py.orig
|
||||||
+++ cloudinit/distros/__init__.py 2014-06-24 18:39:33 +0000
|
+++ cloudinit/distros/__init__.py
|
||||||
@@ -79,6 +79,9 @@
|
@@ -88,6 +88,9 @@ class Distro(object):
|
||||||
" no file found at %s") % (tz, tz_file))
|
" no file found at %s") % (tz, tz_file))
|
||||||
return tz_file
|
return tz_file
|
||||||
|
|
||||||
@ -24,4 +26,3 @@
|
|||||||
def get_option(self, opt_name, default=None):
|
def get_option(self, opt_name, default=None):
|
||||||
return self._cfg.get(opt_name, default)
|
return self._cfg.get(opt_name, default)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user