diff --git a/cloud-init-renderer-detect.patch b/cloud-init-renderer-detect.patch index 1ebe677..2296c19 100644 --- a/cloud-init-renderer-detect.patch +++ b/cloud-init-renderer-detect.patch @@ -1,5 +1,14 @@ --- cloudinit/net/sysconfig.py.orig +++ cloudinit/net/sysconfig.py +@@ -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])) + + @@ -758,6 +758,8 @@ def available_sysconfig(target=None): for p in expected: if not util.which(p, search=search, target=target):