Bug 1696064

Summary: imgcreate should not use chkconfig
Product: [Fedora] Fedora Reporter: Peter Robinson <pbrobinson>
Component: livecd-toolsAssignee: Neal Gompa <ngompa13>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: adam.stokes, bcl, bruno, dhuff, katzj, metherid, ngompa13, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: livecd-tools-26.1-3.fc28 livecd-tools-26.1-3.fc29 livecd-tools-26.1-3.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-06 19:21:51 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: 1695637    

Description Peter Robinson 2019-04-04 06:00:07 UTC
The chkconfig utility is obsolete and is directed at System-V services. imgcreate still uses it and should be using systemctl.

imgcreate/kickstart.py

class ServicesConfig(KickstartConfig):
    """A class to apply a kickstart services configuration to a system."""
    def apply(self, ksservices):

        if fs.chrootentitycheck('chkconfig', self.instroot):
            for s in ksservices.enabled:
                subprocess.call(['chkconfig', s, 'on'], preexec_fn=self.chroot)
            for s in ksservices.disabled:
                subprocess.call(['chkconfig', s, 'off'], preexec_fn=self.chroot)

Comment 1 Fedora Update System 2019-04-04 11:20:46 UTC
livecd-tools-26.1-3.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2019-cd1e07adfa

Comment 2 Fedora Update System 2019-04-04 11:21:11 UTC
livecd-tools-26.1-3.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-f0050456ba

Comment 3 Fedora Update System 2019-04-04 11:21:34 UTC
livecd-tools-26.1-3.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-f1977353ed

Comment 4 Fedora Update System 2019-04-04 18:07:07 UTC
livecd-tools-26.1-3.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-f0050456ba

Comment 5 Fedora Update System 2019-04-05 02:35:31 UTC
livecd-tools-26.1-3.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-cd1e07adfa

Comment 6 Fedora Update System 2019-04-05 03:26:00 UTC
livecd-tools-26.1-3.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-f1977353ed

Comment 7 Fedora Update System 2019-04-06 19:21:51 UTC
livecd-tools-26.1-3.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2019-04-06 19:43:35 UTC
livecd-tools-26.1-3.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2019-04-06 20:19:13 UTC
livecd-tools-26.1-3.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.