SHA256
1
0
forked from pool/cloud-init
cloud-init/addopenSUSEBase.patch

27 lines
938 B
Diff

Index: cloud-init-0.7.6/cloudinit/config/cc_resolv_conf.py
===================================================================
--- cloud-init-0.7.6.orig/cloudinit/config/cc_resolv_conf.py
+++ cloud-init-0.7.6/cloudinit/config/cc_resolv_conf.py
@@ -58,7 +58,7 @@ LOG = logging.getLogger(__name__)
frequency = PER_INSTANCE
-distros = ['fedora', 'rhel', 'sles']
+distros = ['fedora', 'opensuse', 'rhel', 'sles']
def generate_resolv_conf(template_fn, params, target_fname="/etc/resolv.conf"):
Index: cloud-init-0.7.6/cloudinit/distros/__init__.py
===================================================================
--- cloud-init-0.7.6.orig/cloudinit/distros/__init__.py
+++ cloud-init-0.7.6/cloudinit/distros/__init__.py
@@ -41,7 +41,7 @@ OSFAMILIES = {
'redhat': ['fedora', 'rhel'],
'gentoo': ['gentoo'],
'freebsd': ['freebsd'],
- 'suse': ['sles'],
+ 'suse': ['opensuse', 'sles'],
'arch': ['arch'],
}