From a8feff9d2affee091c12247431a02968d3978604 Mon Sep 17 00:00:00 2001
From: nazunalika <tucklesepk@gmail.com>
Date: Tue, 18 May 2021 14:58:47 -0700
Subject: [PATCH] clear main

---
 README.md                                     |   2 +-
 ROCKY/CFG/cloud-init.cfg                      |  22 --
 .../cloud-init-19.4-rocky-branding.patch      |  35 ---
 .../cloud-init-19.4-rocky-support.patch       | 200 ------------------
 4 files changed, 1 insertion(+), 258 deletions(-)
 delete mode 100644 ROCKY/CFG/cloud-init.cfg
 delete mode 100644 ROCKY/_supporting/cloud-init-19.4-rocky-branding.patch
 delete mode 100644 ROCKY/_supporting/cloud-init-19.4-rocky-support.patch

diff --git a/README.md b/README.md
index 61346ba..6c8b06c 100644
--- a/README.md
+++ b/README.md
@@ -1 +1 @@
-Pulled from Rich Alloway git [here](https://github.com/N3WWN/rocky-debranding/tree/master/cloud-init)
+Main branch empty.
diff --git a/ROCKY/CFG/cloud-init.cfg b/ROCKY/CFG/cloud-init.cfg
deleted file mode 100644
index 466ccfa..0000000
--- a/ROCKY/CFG/cloud-init.cfg
+++ /dev/null
@@ -1,22 +0,0 @@
-patch {
-  file: "ROCKY/_supporting/cloud-init-19.4-rocky-branding.patch"
-}
-
-add {
-  file: "ROCKY/_supporting/cloud-init-19.4-rocky-support.patch"
-}
-
-spec_change {
-  file {
-    name: "cloud-init-19.4-rocky-support.patch"
-    type: Patch
-    add: true
-  }
-
-  changelog {
-    author_name: "Rich Alloway"
-    author_email: "ralloway@perforce.com"
-    message: "Apply Rocky Linux (de)branding changes"
-    message: "Include Rocky Linux support"
-  }
-}
diff --git a/ROCKY/_supporting/cloud-init-19.4-rocky-branding.patch b/ROCKY/_supporting/cloud-init-19.4-rocky-branding.patch
deleted file mode 100644
index 86ec272..0000000
--- a/ROCKY/_supporting/cloud-init-19.4-rocky-branding.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-diff --git a/SOURCES/ci-cloud-init.service.tmpl-use-rhel-instead-of-redhat-4.patch b/SOURCES/ci-cloud-init.service.tmpl-use-rhel-instead-of-redhat-4.patch
-index f339ffd..fa93c4e 100644
---- a/SOURCES/ci-cloud-init.service.tmpl-use-rhel-instead-of-redhat-4.patch
-+++ b/SOURCES/ci-cloud-init.service.tmpl-use-rhel-instead-of-redhat-4.patch
-@@ -37,7 +37,7 @@ index 9ad3574..af6d9a8 100644
-  After=networking.service
-  {% endif %}
- -{% if variant in ["centos", "fedora", "redhat"] %}
--+{% if variant in ["centos", "fedora", "rhel"] %}
-++{% if variant in ["centos", "fedora", "rhel", "rocky"] %}
-  After=network.service
-  After=NetworkManager.service
-  {% endif %}
-diff --git a/SOURCES/ci-network-Fix-type-and-respect-name-when-rendering-vla.patch b/SOURCES/ci-network-Fix-type-and-respect-name-when-rendering-vla.patch
-index be05fe3..f6b7d5c 100644
---- a/SOURCES/ci-network-Fix-type-and-respect-name-when-rendering-vla.patch
-+++ b/SOURCES/ci-network-Fix-type-and-respect-name-when-rendering-vla.patch
-@@ -99,7 +99,7 @@ index 810b283..4b4ed09 100644
- +            if iface_name not in supported:
- +                LOG.info(
- +                    "Name '%s' for vlan '%s' is not officially supported"
--+                    "by RHEL. Supported: %s",
-++                    "by Rocky. Supported: %s",
- +                    iface_name, rdev, ' '.join(supported))
- +            iface_cfg['PHYSDEV'] = rdev
-  
-@@ -110,7 +110,7 @@ index 810b283..4b4ed09 100644
-  
-  
- +def _supported_vlan_names(rdev, vid):
--+    """Return list of supported names for vlan devices per RHEL doc
-++    """Return list of supported names for vlan devices per Rocky doc
- +    11.5. Naming Scheme for VLAN Interfaces."""
- +    return [
- +        v.format(rdev=rdev, vid=int(vid))
diff --git a/ROCKY/_supporting/cloud-init-19.4-rocky-support.patch b/ROCKY/_supporting/cloud-init-19.4-rocky-support.patch
deleted file mode 100644
index 80cb3cc..0000000
--- a/ROCKY/_supporting/cloud-init-19.4-rocky-support.patch
+++ /dev/null
@@ -1,200 +0,0 @@
-diff -Npruw cloud-init-19.4.orig/cloudinit/config/cc_ntp.py cloud-init-19.4/cloudinit/config/cc_ntp.py
---- cloud-init-19.4.orig/cloudinit/config/cc_ntp.py	2019-12-18 15:14:55.000000000 +0000
-+++ cloud-init-19.4/cloudinit/config/cc_ntp.py	2021-02-23 15:05:54.537773516 +0000
-@@ -25,7 +25,7 @@ LOG = logging.getLogger(__name__)
- frequency = PER_INSTANCE
- NTP_CONF = '/etc/ntp.conf'
- NR_POOL_SERVERS = 4
--distros = ['centos', 'debian', 'fedora', 'opensuse', 'rhel', 'sles', 'ubuntu']
-+distros = ['centos', 'debian', 'fedora', 'opensuse', 'rhel', 'rocky', 'sles', 'ubuntu']
- 
- NTP_CLIENT_CONFIG = {
-     'chrony': {
-diff -Npruw cloud-init-19.4.orig/cloudinit/distros/__init__.py cloud-init-19.4/cloudinit/distros/__init__.py
---- cloud-init-19.4.orig/cloudinit/distros/__init__.py	2019-12-18 15:14:55.000000000 +0000
-+++ cloud-init-19.4/cloudinit/distros/__init__.py	2021-02-23 15:07:08.719987346 +0000
-@@ -36,7 +36,7 @@ ALL_DISTROS = 'all'
- 
- OSFAMILIES = {
-     'debian': ['debian', 'ubuntu'],
--    'redhat': ['amazon', 'centos', 'fedora', 'rhel'],
-+    'redhat': ['amazon', 'centos', 'fedora', 'rhel', 'rocky'],
-     'gentoo': ['gentoo'],
-     'freebsd': ['freebsd'],
-     'suse': ['opensuse', 'sles'],
-diff -Npruw cloud-init-19.4.orig/cloudinit/distros/rocky.py cloud-init-19.4/cloudinit/distros/rocky.py
---- cloud-init-19.4.orig/cloudinit/distros/rocky.py	1970-01-01 00:00:00.000000000 +0000
-+++ cloud-init-19.4/cloudinit/distros/rocky.py	2019-12-18 15:14:55.000000000 +0000
-@@ -0,0 +1,12 @@
-+# This file is part of cloud-init. See LICENSE file for license information.
-+
-+from cloudinit.distros import rhel
-+from cloudinit import log as logging
-+
-+LOG = logging.getLogger(__name__)
-+
-+
-+class Distro(rhel.Distro):
-+    pass
-+
-+# vi: ts=4 expandtab
-diff -Npruw cloud-init-19.4.orig/cloudinit/net/sysconfig.py cloud-init-19.4/cloudinit/net/sysconfig.py
---- cloud-init-19.4.orig/cloudinit/net/sysconfig.py	2021-02-23 14:22:31.166416069 +0000
-+++ cloud-init-19.4/cloudinit/net/sysconfig.py	2021-02-23 15:09:54.547943855 +0000
-@@ -18,7 +18,7 @@ from .network_state import (
- 
- LOG = logging.getLogger(__name__)
- NM_CFG_FILE = "/etc/NetworkManager/NetworkManager.conf"
--KNOWN_DISTROS = ['centos', 'fedora', 'rhel', 'suse']
-+KNOWN_DISTROS = ['centos', 'fedora', 'rhel', 'rocky', 'suse']
- 
- 
- def _make_header(sep='#'):
-diff -Npruw cloud-init-19.4.orig/cloudinit/sources/DataSourceRbxCloud.py cloud-init-19.4/cloudinit/sources/DataSourceRbxCloud.py
---- cloud-init-19.4.orig/cloudinit/sources/DataSourceRbxCloud.py	2019-12-18 15:14:55.000000000 +0000
-+++ cloud-init-19.4/cloudinit/sources/DataSourceRbxCloud.py	2021-02-23 15:09:13.946187259 +0000
-@@ -52,7 +52,7 @@ def _sub_arp(cmd):
- 
- def gratuitous_arp(items, distro):
-     source_param = '-S'
--    if distro.name in ['fedora', 'centos', 'rhel']:
-+    if distro.name in ['fedora', 'centos', 'rhel', 'rocky']:
-         source_param = '-s'
-     for item in items:
-         _sub_arp([
-diff -Npruw cloud-init-19.4.orig/cloudinit/util.py cloud-init-19.4/cloudinit/util.py
---- cloud-init-19.4.orig/cloudinit/util.py	2021-02-23 14:22:31.141415841 +0000
-+++ cloud-init-19.4/cloudinit/util.py	2021-02-23 15:18:11.014195331 +0000
-@@ -672,7 +672,7 @@ def system_info():
-     if system == "linux":
-         linux_dist = info['dist'][0].lower()
-         if linux_dist in (
--                'arch', 'centos', 'debian', 'fedora', 'rhel', 'suse'):
-+                'arch', 'centos', 'debian', 'fedora', 'rhel', 'rocky', 'suse'):
-             var = linux_dist
-         elif linux_dist in ('ubuntu', 'linuxmint', 'mint'):
-             var = 'ubuntu'
-diff -Npruw cloud-init-19.4.orig/config/cloud.cfg.tmpl cloud-init-19.4/config/cloud.cfg.tmpl
---- cloud-init-19.4.orig/config/cloud.cfg.tmpl	2021-02-23 14:22:31.158415996 +0000
-+++ cloud-init-19.4/config/cloud.cfg.tmpl	2021-02-23 15:19:14.295374548 +0000
-@@ -21,7 +21,7 @@ disable_root: false
- disable_root: true
- {% endif %}
- 
--{% if variant in ["centos", "fedora", "rhel"] %}
-+{% if variant in ["centos", "fedora", "rhel", "rocky"] %}
- mount_default_fields: [~, ~, 'auto', 'defaults,nofail', '0', '2']
- resize_rootfs_tmp: /dev
- ssh_pwauth:   0
-@@ -139,7 +139,7 @@ cloud_final_modules:
- # (not accessible to handlers/transforms)
- system_info:
-    # This will affect which distro class gets used
--{% if variant in ["arch", "centos", "debian", "fedora", "freebsd", "rhel", "suse", "ubuntu"] %}
-+{% if variant in ["arch", "centos", "debian", "fedora", "freebsd", "rhel", "rocky", "suse", "ubuntu"] %}
-    distro: {{ variant }}
- {% else %}
-    # Unknown/fallback distro.
-@@ -187,7 +187,7 @@ system_info:
-          primary: http://ports.ubuntu.com/ubuntu-ports
-          security: http://ports.ubuntu.com/ubuntu-ports
-    ssh_svcname: ssh
--{% elif variant in ["arch", "centos", "fedora", "rhel", "suse"] %}
-+{% elif variant in ["arch", "centos", "fedora", "rhel", "rocky", "suse"] %}
-    # Default user name + that default users groups (if added/used)
-    default_user:
-      name: {{ variant }}
-diff -Npruw cloud-init-19.4.orig/doc/rtd/topics/availability.rst cloud-init-19.4/doc/rtd/topics/availability.rst
---- cloud-init-19.4.orig/doc/rtd/topics/availability.rst	2019-12-18 15:14:55.000000000 +0000
-+++ cloud-init-19.4/doc/rtd/topics/availability.rst	2021-02-23 15:19:41.916889268 +0000
-@@ -19,7 +19,7 @@ FreeBSD:
- 
- - Ubuntu
- - SLES/openSUSE
--- RHEL/CentOS
-+- RHEL/CentOS/Rocky
- - Fedora
- - Gentoo Linux
- - Debian
-diff -Npruw cloud-init-19.4.orig/Makefile cloud-init-19.4/Makefile
---- cloud-init-19.4.orig/Makefile	2019-12-18 15:14:55.000000000 +0000
-+++ cloud-init-19.4/Makefile	2021-02-23 14:28:06.838476635 +0000
-@@ -59,6 +59,9 @@ ci-deps-ubuntu:
- ci-deps-centos:
- 	@$(PYVER) $(CWD)/tools/read-dependencies --distro centos --test-distro
- 
-+ci-deps-rocky:
-+	@$(PYVER) $(CWD)/tools/read-dependencies --distro rocky --test-distro
-+
- pip-requirements:
- 	@echo "Installing cloud-init dependencies..."
- 	$(PIP_INSTALL) -r "$@.txt" -q
-diff -Npruw cloud-init-19.4.orig/README.md cloud-init-19.4/README.md
---- cloud-init-19.4.orig/README.md	2019-12-18 15:14:55.000000000 +0000
-+++ cloud-init-19.4/README.md	2021-02-23 14:31:16.380204828 +0000
-@@ -39,7 +39,7 @@ get in contact with that distribution an
- 
- | Supported OSes | Supported Public Clouds | Supported Private Clouds |
- | --- | --- | --- |
--| Ubuntu<br />SLES/openSUSE<br />RHEL/CentOS<br />Fedora<br />Gentoo Linux<br />Debian<br />ArchLinux<br />FreeBSD<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> | Amazon Web Services<br />Microsoft Azure<br />Google Cloud Platform<br />Oracle Cloud Infrastructure<br />Softlayer<br />Rackspace Public Cloud<br />IBM Cloud<br />Digital Ocean<br />Bigstep<br />Hetzner<br />Joyent<br />CloudSigma<br />Alibaba Cloud<br />OVH<br />OpenNebula<br />Exoscale<br />Scaleway<br />CloudStack<br />AltCloud<br />SmartOS<br /> | Bare metal installs<br />OpenStack<br />LXD<br />KVM<br />Metal-as-a-Service (MAAS)<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />|
-+| Ubuntu<br />SLES/openSUSE<br />RHEL/CentOS/Rocky<br />Fedora<br />Gentoo Linux<br />Debian<br />ArchLinux<br />FreeBSD<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> | Amazon Web Services<br />Microsoft Azure<br />Google Cloud Platform<br />Oracle Cloud Infrastructure<br />Softlayer<br />Rackspace Public Cloud<br />IBM Cloud<br />Digital Ocean<br />Bigstep<br />Hetzner<br />Joyent<br />CloudSigma<br />Alibaba Cloud<br />OVH<br />OpenNebula<br />Exoscale<br />Scaleway<br />CloudStack<br />AltCloud<br />SmartOS<br /> | Bare metal installs<br />OpenStack<br />LXD<br />KVM<br />Metal-as-a-Service (MAAS)<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />|
- 
- ## To start developing cloud-init
- 
-diff -Npruw cloud-init-19.4.orig/systemd/cloud-init-generator.tmpl cloud-init-19.4/systemd/cloud-init-generator.tmpl
---- cloud-init-19.4.orig/systemd/cloud-init-generator.tmpl	2021-02-23 14:22:31.127415713 +0000
-+++ cloud-init-19.4/systemd/cloud-init-generator.tmpl	2021-02-23 15:21:36.638027056 +0000
-@@ -83,7 +83,7 @@ default() {
- 
- check_for_datasource() {
-     local ds_rc=""
--{% if variant in ["rhel", "fedora", "centos"] %}
-+{% if variant in ["rhel", "fedora", "centos", "rocky"] %}
-     local dsidentify="/usr/libexec/cloud-init/ds-identify"
- {% else %}
-     local dsidentify="/usr/lib/cloud-init/ds-identify"
-diff -Npruw cloud-init-19.4.orig/tools/read-dependencies cloud-init-19.4/tools/read-dependencies
---- cloud-init-19.4.orig/tools/read-dependencies	2021-02-23 14:22:31.180416196 +0000
-+++ cloud-init-19.4/tools/read-dependencies	2021-02-23 15:39:23.455775388 +0000
-@@ -24,6 +24,7 @@ DEFAULT_REQUIREMENTS = 'requirements.txt
- DISTRO_PKG_TYPE_MAP = {
-     'centos': 'redhat',
-     'redhat': 'redhat',
-+    'rocky': 'redhat',
-     'debian': 'debian',
-     'ubuntu': 'debian',
-     'opensuse': 'suse',
-@@ -58,11 +59,13 @@ ZYPPER_INSTALL = [
- DRY_DISTRO_INSTALL_PKG_CMD = {
-     'centos': ['yum', 'install', '--assumeyes'],
-     'redhat': ['yum', 'install', '--assumeyes'],
-+    'rocky': ['yum', 'install', '--assumeyes'],
- }
- 
- DISTRO_INSTALL_PKG_CMD = {
-     'centos': MAYBE_RELIABLE_YUM_INSTALL,
-     'redhat': MAYBE_RELIABLE_YUM_INSTALL,
-+    'rocky': MAYBE_RELIABLE_YUM_INSTALL,
-     'debian': ['apt', 'install', '-y'],
-     'ubuntu': ['apt', 'install', '-y'],
-     'opensuse': ZYPPER_INSTALL,
-@@ -75,6 +78,7 @@ CI_SYSTEM_BASE_PKGS = {
-     'common': ['make', 'sudo', 'tar'],
-     'redhat': ['python-tox'],
-     'centos': ['python-tox'],
-+    'rocky': ['python-tox'],
-     'ubuntu': ['devscripts', 'python3-dev', 'libssl-dev', 'tox', 'sbuild'],
-     'debian': ['devscripts', 'python3-dev', 'libssl-dev', 'tox', 'sbuild']}
- 
-@@ -259,9 +263,9 @@ def pkg_install(pkg_list, distro, test_d
-     install_cmd.extend(cmd)
- 
-     if distro in ['centos', 'redhat']:
--        # CentOS and Redhat need epel-release to access oauthlib and jsonschema
-+        # CentOS and Redhat (not Rocky) need epel-release to access oauthlib and jsonschema
-         subprocess.check_call(install_cmd + ['epel-release'])
--    if distro in ['suse', 'opensuse', 'redhat', 'centos']:
-+    if distro in ['suse', 'opensuse', 'redhat', 'centos', 'rocky']:
-         pkg_list.append('rpm-build')
-     subprocess.check_call(install_cmd + pkg_list)
- 
-- 
GitLab