2019-10-22 22:01:12 +02:00
|
|
|
--- cloudinit/net/sysconfig.py.orig
|
|
|
|
+++ cloudinit/net/sysconfig.py
|
2019-10-22 23:13:06 +02:00
|
|
|
@@ -748,7 +748,7 @@ class Renderer(renderer.Renderer):
|
|
|
|
def available(target=None):
|
|
|
|
sysconfig = available_sysconfig(target=target)
|
|
|
|
nm = available_nm(target=target)
|
|
|
|
- return (util.get_linux_distro()[0] in KNOWN_DISTROS
|
|
|
|
+ return (util.system_info()['variant'] in KNOWN_DISTROS
|
|
|
|
and any([nm, sysconfig]))
|
|
|
|
|
|
|
|
|
2019-10-22 22:01:12 +02:00
|
|
|
@@ -758,6 +758,8 @@ def available_sysconfig(target=None):
|
|
|
|
for p in expected:
|
|
|
|
if not util.which(p, search=search, target=target):
|
|
|
|
return False
|
|
|
|
+ else:
|
|
|
|
+ return True
|
|
|
|
|
|
|
|
expected_paths = ['etc/sysconfig/network/scripts/functions.netconfig']
|
|
|
|
for p in expected_paths:
|