[WIP] spec: Avoid DNF warnings on traditional Fedora hosts and DNF on atomics #3509
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It will be good to make it easier to have gratis, self-supported Red Hat Enterprise Linux OCI containers on Fedora Silverblue and Workstation through the RHEL Developer Suite subscription. This includes Toolbx containers created with:
$ toolbox create --distro rhel --release 9.5
However, when
subscription-manager
was installed on a Fedora host with DNF4, thesubscription-manager
DNF plugin printed some spurious warning messages that users didn't like because it made them think that something is wrong. eg., when the host is unregistered:Or, when the host has been registered:
These warnings have no relevance in Fedora, because the purpose of using
subscription-manager(8)
on a Fedora host is to access RHEL content in OCI containers. There is no need for RHEL content on the Fedora host itself.Note that these warnings aren't visible on Fedora hosts with DNF5 because the subscription-manager plugin doesn't work with it.
Secondly, until now,
subscription-manager
had%{_bindir}/dnf-3
and%{_bindir}/dnf4
in its dependency chain. This meant that installingsubscription-manager
on Fedora Silverblue pulled them in, even though those executables shouldn't be present on Silverblue because they don't work there.Both these problems can be addressed by disabling the DNF and libdnf plugins on Fedora.
https://bugzilla.redhat.com/show_bug.cgi?id=2246833
https://bugzilla.redhat.com/show_bug.cgi?id=2262228