Bug 1302608

Summary: group directive is not added into anaconda-ks.cfg
Product: Red Hat Enterprise Linux 6 Reporter: Masahiro Matsuya <mmatsuya>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED WONTFIX QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.7CC: cww, jcastran
Target Milestone: rcKeywords: EasyFix, Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-15 18:56:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1269194    
Attachments:
Description Flags
proposed patch none

Description Masahiro Matsuya 2016-01-28 09:15:19 UTC
Description of problem:
The kickstart file used for installation has a group directive. But, after installation, it's not in /root/anaconda-ks.cfg.


    def writeKS(self, filename):
...
        if self.anaconda.isKickstart:
            f.write(self.ksdata.user.__str__())
            f.write(self.ksdata.services.__str__())
            f.write(self.ksdata.reboot.__str__())

f.write(self.ksdata.group.__str__()) is missing here definitely.

Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux 6

How reproducible:
Always

Steps to Reproduce:
1. Install RHEL6.7 with a kickstart file including group directive
2. After installation, check /root/anaconda-ks.cfg

Actual results:
group directive is not in /root/anaconda-ks.cfg

Expected results:
group directive is written in /root/anaconda-ks.cfg

Comment 1 Masahiro Matsuya 2016-01-28 09:17:28 UTC
Created attachment 1119076 [details]
proposed patch