forked from pool/cloud-init
- update cloud-init-sysconfig-netpathfix.patch:
* skip checking for files in /etc/sysconfig that never exist on a wickedd based system OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=108
This commit is contained in:
parent
00cc602280
commit
ed9aa9f0d8
@ -1,8 +1,8 @@
|
|||||||
Index: cloud-init-0.7.8/cloudinit/distros/__init__.py
|
Index: cloud-init-17.2/cloudinit/distros/__init__.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- cloud-init-0.7.8.orig/cloudinit/distros/__init__.py
|
--- cloud-init-17.2.orig/cloudinit/distros/__init__.py
|
||||||
+++ cloud-init-0.7.8/cloudinit/distros/__init__.py
|
+++ cloud-init-17.2/cloudinit/distros/__init__.py
|
||||||
@@ -504,8 +504,11 @@ class Distro(object):
|
@@ -551,8 +551,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,5 @@
|
|||||||
|
Index: cloudinit/util.py
|
||||||
|
===================================================================
|
||||||
--- cloudinit/util.py.orig
|
--- cloudinit/util.py.orig
|
||||||
+++ cloudinit/util.py
|
+++ cloudinit/util.py
|
||||||
@@ -35,6 +35,7 @@ import time
|
@@ -35,6 +35,7 @@ import time
|
||||||
@ -8,7 +10,7 @@
|
|||||||
from six.moves.urllib import parse as urlparse
|
from six.moves.urllib import parse as urlparse
|
||||||
|
|
||||||
import six
|
import six
|
||||||
@@ -1815,7 +1816,8 @@ def subp(args, data=None, rcs=None, env=
|
@@ -1858,7 +1859,8 @@ def subp(args, data=None, rcs=None, env=
|
||||||
|
|
||||||
sp = subprocess.Popen(args, stdout=stdout,
|
sp = subprocess.Popen(args, stdout=stdout,
|
||||||
stderr=stderr, stdin=stdin,
|
stderr=stderr, stdin=stdin,
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
|
Index: cloudinit/net/sysconfig.py
|
||||||
|
===================================================================
|
||||||
--- cloudinit/net/sysconfig.py.orig
|
--- cloudinit/net/sysconfig.py.orig
|
||||||
+++ cloudinit/net/sysconfig.py
|
+++ cloudinit/net/sysconfig.py
|
||||||
@@ -88,8 +88,8 @@ class ConfigMap(object):
|
@@ -91,8 +91,8 @@ class ConfigMap(object):
|
||||||
class Route(ConfigMap):
|
class Route(ConfigMap):
|
||||||
"""Represents a route configuration."""
|
"""Represents a route configuration."""
|
||||||
|
|
||||||
@ -11,7 +13,7 @@
|
|||||||
|
|
||||||
def __init__(self, route_name, base_sysconf_dir):
|
def __init__(self, route_name, base_sysconf_dir):
|
||||||
super(Route, self).__init__()
|
super(Route, self).__init__()
|
||||||
@@ -166,7 +166,7 @@ class Route(ConfigMap):
|
@@ -169,7 +169,7 @@ class Route(ConfigMap):
|
||||||
class NetInterface(ConfigMap):
|
class NetInterface(ConfigMap):
|
||||||
"""Represents a sysconfig/networking-script (and its config + children)."""
|
"""Represents a sysconfig/networking-script (and its config + children)."""
|
||||||
|
|
||||||
@ -20,14 +22,16 @@
|
|||||||
|
|
||||||
iface_types = {
|
iface_types = {
|
||||||
'ethernet': 'Ethernet',
|
'ethernet': 'Ethernet',
|
||||||
@@ -602,8 +602,8 @@ def available(target=None):
|
@@ -616,12 +616,6 @@ def available(target=None):
|
||||||
|
if not util.which(p, search=search, target=target):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
expected_paths = [
|
- expected_paths = [
|
||||||
- 'etc/sysconfig/network-scripts/network-functions',
|
- 'etc/sysconfig/network-scripts/network-functions',
|
||||||
- 'etc/sysconfig/network-scripts/ifdown-eth']
|
- 'etc/sysconfig/network-scripts/ifdown-eth']
|
||||||
+ 'etc/sysconfig/network/network-functions',
|
- for p in expected_paths:
|
||||||
+ 'etc/sysconfig/network/ifdown-eth']
|
- if not os.path.isfile(util.target_path(target, p)):
|
||||||
for p in expected_paths:
|
- return False
|
||||||
if not os.path.isfile(util.target_path(target, p)):
|
return True
|
||||||
return False
|
|
||||||
|
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 16 13:23:00 UTC 2018 - dmueller@suse.com
|
||||||
|
|
||||||
|
- update cloud-init-sysconfig-netpathfix.patch:
|
||||||
|
* skip checking for files in /etc/sysconfig that never exist
|
||||||
|
on a wickedd based system
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 13 19:39:50 UTC 2018 - rjschwei@suse.com
|
Tue Feb 13 19:39:50 UTC 2018 - rjschwei@suse.com
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
|
Index: setup.py
|
||||||
|
===================================================================
|
||||||
--- setup.py.orig
|
--- setup.py.orig
|
||||||
+++ setup.py
|
+++ setup.py
|
||||||
@@ -49,8 +49,8 @@ def tiny_p(cmd, capture=True):
|
@@ -52,8 +52,8 @@ def tiny_p(cmd, capture=True):
|
||||||
def pkg_config_read(library, var):
|
def pkg_config_read(library, var):
|
||||||
fallbacks = {
|
fallbacks = {
|
||||||
'systemd': {
|
'systemd': {
|
||||||
@ -11,6 +13,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
cmd = ['pkg-config', '--variable=%s' % var, library]
|
cmd = ['pkg-config', '--variable=%s' % var, library]
|
||||||
|
Index: systemd/cloud-init-generator
|
||||||
|
===================================================================
|
||||||
--- systemd/cloud-init-generator.orig
|
--- systemd/cloud-init-generator.orig
|
||||||
+++ systemd/cloud-init-generator
|
+++ systemd/cloud-init-generator
|
||||||
@@ -9,7 +9,7 @@ DISABLE="disabled"
|
@@ -9,7 +9,7 @@ DISABLE="disabled"
|
||||||
|
Loading…
Reference in New Issue
Block a user