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 1342663 - [RFE] Kickstart option to prevent creating anaconda-ks.cfg
Summary: [RFE] Kickstart option to prevent creating anaconda-ks.cfg
Keywords:
Status: CLOSED DUPLICATE of bug 1285519
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: anaconda
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-03 19:45 UTC by John Walter
Modified: 2020-01-17 15:46 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-03 19:58:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Walter 2016-06-03 19:45:35 UTC
1. Proposed title of this feature request

Kickstart option to prevent creating anaconda-ks.cfg

2. Customer info:

Eric Sisolak - 457414

3. What is the nature and description of the request?

Deployed systems write out a kickstart file to /root/anaconda-ks.cfg that can be used to kickstart similarly configured systems.  This is a handy way to generate a kickstart file if you need one.  However, in many cases you don't, especially if you already used one to deploy the system in the firstplace.  In these scenarios it is best to remove the file since it contains potentially sensitive info (such as root's password or hash).  Previously it could be removed during %post (as noted here: https://access.redhat.com/solutions/504253), however in RHEL 7 it is created after %post making it more difficult to cleanup.

I would like a kickstart option that would be able to disable the creation of this kickstart file.  This could be used to override the default of creating /root/anaconda-ks.cfg and later cleanup would not be needed.  Or even have the default for kickstarted installs to be disabled since obviously a kickstart exists.

Adding the option to the interactive installer might also be useful,

4. Why does the customer need this? (List the business requirements here)

Customer creates several kickstarted machines, does not want /root/anaconda-ks.cfg generated that includes potentially sensitive info. Wants this process to have the option for automation during the kickstart/install stage.


5. How would the customer like to achieve this? (List the functional requirements here) Include the packages in distribution in future release.

I assume this would be an addition to the GUI install, or a change to when the anaconda-ks.cfg file is generated (as it is right now generated after %post).


6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.

Easy to test, just kickstart an install.


7. Is there already an existing RFE upstream or in Red Hat Bugzilla?
 No 


8. Does the customer have any specific time-line dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?

 Future release of RHEL 7. 


9. Sales is not involved.


10. List any affected packages or components.

None


11. Would the customer be able to assist in testing this functionality if implemented?

Yes

Comment 1 David Shea 2016-06-03 19:58:16 UTC
bug 1285519 adds a new boot parameter that will be included in 7.3. Use inst.nosave=output_ks or inst.nosave=all_ks.

*** This bug has been marked as a duplicate of bug 1285519 ***


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