Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
subscription-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
staging
patch
subscription-manager
Commits
0075e02a
Verified
Commit
0075e02a
authored
3 years ago
by
Louis Abel
Browse files
Options
Downloads
Patches
Plain Diff
restructure, remove redhat refs in spec
parent
abe227e8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ROCKY/CFG/subscription-manager.cfg
+20
-4
20 additions, 4 deletions
ROCKY/CFG/subscription-manager.cfg
ROCKY/_supporting/0001-subscription-manager-rocky-remove-redhat-refs.patch
+10
-0
10 additions, 0 deletions
.../0001-subscription-manager-rocky-remove-redhat-refs.patch
with
30 additions
and
4 deletions
ROCKY/CFG/subscription-manager.cfg
+
20
−
4
View file @
0075e02a
...
...
@@ -3,7 +3,7 @@ add {
}
add
{
file:
"ROCKY/_supporting/subscription-manager-rocky-remove-redhat
.
re
po
.patch"
file:
"ROCKY/_supporting/
0001-
subscription-manager-rocky-remove-redhat
-
re
fs
.patch"
}
spec_change
{
...
...
@@ -17,7 +17,7 @@ spec_change {
}
file
{
name:
"subscription-manager-rocky-remove-redhat
.
re
po
.patch"
name:
"
0001-
subscription-manager-rocky-remove-redhat
-
re
fs
.patch"
type:
Patch
add:
true
add_to_prep:
true
...
...
@@ -48,14 +48,16 @@ spec_change {
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"
#replace: "rm %{buildroot}/%{_sysconfdir}/rhsm/ca/redhat-entitlement-authority.pem"
replace:
"
# remove redhat entitlement"
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"
#replace: "rm %{_builddir}/%{buildsubdir}/etc-conf/redhat-uep.pem %{buildroot}/%{_sysconfdir}/rhsm/ca/redhat-uep.pem"
replace:
"
# remove redhat uep"
n:
1
}
...
...
@@ -86,4 +88,18 @@ spec_change {
replace:
"
# remove redhat entitlement authority"
n:
1
}
# Remove random red hat references
search_and_replace
{
any:
true
find:
"the
Red
Hat"
replace:
"an"
n:
-1
}
search_and_replace
{
any:
true
find:
"a
Red
Hat"
replace:
"a"
n:
-1
}
}
This diff is collapsed.
Click to expand it.
ROCKY/_supporting/subscription-manager-rocky-remove-redhat
.
re
po
.patch
→
ROCKY/_supporting/
0001-
subscription-manager-rocky-remove-redhat
-
re
fs
.patch
+
10
−
0
View file @
0075e02a
diff -Naurp subscription-manager-1.29.21-orig/etc-conf/plugin/subscription-manager.conf subscription-manager-1.29.21/etc-conf/plugin/subscription-manager.conf
--- subscription-manager-1.29.21-orig/etc-conf/plugin/subscription-manager.conf 2021-11-11 13:38:40.000000000 -0700
+++ subscription-manager-1.29.21/etc-conf/plugin/subscription-manager.conf 2022-01-26 23:48:52.979563096 -0700
@@ -1,5 +1,5 @@
[main]
-enabled=1
+enabled=0
# When following option is set to 1, then all repositories defined outside redhat.repo will be disabled
# every time subscription-manager plugin is triggered by dnf or yum
diff -Naurp subscription-manager-1.29.21-orig/etc-conf/subscription-manager-cockpit.desktop.in subscription-manager-1.29.21/etc-conf/subscription-manager-cockpit.desktop.in
--- subscription-manager-1.29.21-orig/etc-conf/subscription-manager-cockpit.desktop.in 2021-11-11 13:38:40.000000000 -0700
+++ subscription-manager-1.29.21/etc-conf/subscription-manager-cockpit.desktop.in 2022-01-26 23:11:04.865611666 -0700
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment