Skip to content
Snippets Groups Projects
Unverified Commit e17f8959 authored by Louis Abel's avatar Louis Abel :tv:
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
add {
file: "ROCKY-use-rocky-syspurposes.patch"
}
add {
file: "subscription-manager-rocky-remove-redhat.repo.patch"
}
spec_change {
file {
name: "ROCKY-use-rocky-syspurposes.patch"
type: Patch
add: true
add_to_spec: true
}
file {
name: "subscription-manager-rocky-remove-redhat.repo.patch"
type: Patch
add: true
add_to_spec: true
}
search_and_replace {
any: true
find: "Supplements: initial-setup-gui"
replace: "#Supplements: initial-setup-gui"
n: 1
}
search_and_replace {
any: true
find: "touch %{buildroot}%{_sysconfdir}/yum.repos.d/redhat.repo"
replace: "# redhat repo not required"
n: 1
}
search_and_replace {
any: true
find: "mkdir %{buildroot}%{_sysconfdir}/docker/certs.d/cdn.redhat.com"
replace: "# remove cdn.redhat.com"
n: 1
}
search_and_replace {
any: true
find: "install -m 644 %{_builddir}/%{buildsubdir}/etc-conf/redhat-entitlement-authority.pem %{buildroot}%{_sysconfdir}/docker/certs.d/cdn.redhat.com/redhat-entitlement-authority.crt"
replace: "# remove redhat entitlement"
n: 1
}
search_and_replace {
any: true
find: "install -m 644 %{_builddir}/%{buildsubdir}/etc-conf/redhat-entitlement-authority.pem %{buildroot}/%{_sysconfdir}/rhsm/ca/redhat-entitlement-authority.pem"
replace: "rm %{buildroot}/%{_sysconfdir}/rhsm/ca/redhat-entitlement-authority.pem"
n: 1
}
search_and_replace {
any: true
find: "install -m 644 %{_builddir}/%{buildsubdir}/etc-conf/redhat-uep.pem %{buildroot}/%{_sysconfdir}/rhsm/ca/redhat-uep.pem"
replace: "sed -e '/^enabled=/ s/1/0/' -i %{buildroot}%{_sysconfdir}/dnf/plugins/subscription-manager.conf"
n: 1
}
search_and_replace {
any: true
find: "%attr(755,root,root) %dir %{_sysconfdir}/docker/certs.d/cdn.redhat.com"
replace: "# remove cdn.redhat.com"
n: 1
}
search_and_replace {
any: true
find: "%attr(644,root,root) %{_sysconfdir}/docker/certs.d/cdn.redhat.com/redhat-entitlement-authority.crt"
replace: "# remove redhat entitlement"
n: 1
}
search_and_replace {
any: true
find: "%attr(644,root,root) %{_sysconfdir}/rhsm/ca/redhat-entitlement-authority.pem"
replace: "# remove redhat entitlement authority"
n: 1
}
search_and_replace {
any: true
find: "%attr(644,root,root) %{_sysconfdir}/rhsm/ca/redhat-uep.pem"
replace: "# remove redhat entitlement authority"
n: 1
}
}
diff --git a/etc-conf/syspurpose/valid_fields.json b/etc-conf/syspurpose/valid_fields.json
index 1ac7ea0e..305ec4b9 100644
--- a/etc-conf/syspurpose/valid_fields.json
+++ b/etc-conf/syspurpose/valid_fields.json
@@ -1,12 +1,10 @@
{
"role": [
- "Red Hat Enterprise Linux Server",
- "Red Hat Enterprise Linux Workstation",
- "Red Hat Enterprise Linux Compute Node"
+ "Rocky Linux Server",
+ "Rocky Linux Workstation",
+ "Rocky Linux Compute Node"
],
"service_level_agreement": [
- "Premium",
- "Standard",
"Self-Support"
],
"usage": [
diff -uNrp subscription-manager-1.23.8.orig/src/subscription_manager/repofile.py subscription-manager-1.23.8/src/subscription_manager/repofile.py
--- subscription-manager-1.23.8.orig/src/subscription_manager/repofile.py 2019-03-06 08:15:21.000000000 -0600
+++ subscription-manager-1.23.8/src/subscription_manager/repofile.py 2019-07-10 12:03:11.266030982 -0500
@@ -340,6 +340,7 @@ class RepoFileBase(object):
return self.path_exists(self.path)
def create(self):
+ return
if self.path_exists(self.path) or not self.manage_repos:
return
with open(self.path, 'w') as f:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment