RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1921787 - rhsm and syspurpose commands written into /root/anaconda-ks.cfg when subscription is not enabled
Summary: rhsm and syspurpose commands written into /root/anaconda-ks.cfg when subscrip...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: anaconda
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Vendula Poncova
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks: 1879091 1903942
TreeView+ depends on / blocked
 
Reported: 2021-01-28 15:48 UTC by Jan Stodola
Modified: 2021-05-18 15:47 UTC (History)
4 users (show)

Fixed In Version: anaconda-33.16.4.10-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:47:16 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Stodola 2021-01-28 15:48:01 UTC
Description of problem:
/root/anaconda-ks.cfg created by anaconda on the installed system contains the "rhsm" and "syspurpose" commands from the original kickstart file even when the subscription module was not enabled by the anaconda config files.

It can also happen that some of the commands are present twice in the kickstart file generated by anaconda when the subscription module is enabled (it means the default RHEL installation without any anaconda config files).

Mentioning both cases, since it would be good to verify both of them when this bug is fixed.

Related bug 1913689.

Version-Release number of selected component (if applicable):
anaconda-33.16.4.8-1.el8

How reproducible:
always

Steps to Reproduce:
0. prepare a kickstart file with the rhsm and syspurpose commands set
1. run the installation with the subscription module disabled (use updates.img, see bug 1913689)
2. run the installation with the subscription module enabled (default RHEL installation)

Actual results:
1) rhsm and syspurpose commands present in /root/anaconda-ks.cfg even when the subscription module was disabled.
2) rhsm and/or syspurpose commands present twice in /root/anaconda-ks.cfg when the subscription module was enabled (default RHEL installation)

Expected results:
1) no rhsm and syspurpose commands in /root/anaconda-ks.cfg
2) rhsm and syspurpose commands in /root/anaconda-ks.cfg exactly once.

Comment 10 errata-xmlrpc 2021-05-18 15:47:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (anaconda bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1844


Note You need to log in before you can comment on or make changes to this bug.