Description of problem: the livecd-creator script fails to disable a service in the runlevel 2 (it only disables the service in the runlevel 3-5). Version-Release number of selected component (if applicable): livecd-tools-009-1 How reproducible: Always. Steps to Reproduce: 1. create a live ISO based on the livecd-fedora-desktop.ks example 2. boot the ISO 3. check the sshd daemon chkconfig configuration Actual results: sshd will still start in the runlevel 2 Expected results: Also disable the service in the runlevel 2. Additional info: By default sshd is enabled in 4 runlevels (2-5): $ chkconfig --list sshd sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off The current version of livecd-creator only disables the service in 3 runlevels (3-5). Kickstart line: services --enabled=NetworkManager,dhcdbd --disabled=network,sshd livecd-creator offending lines for s in self.ksparser.handler.services.disabled: subprocess.call(["/sbin/chkconfig", s, "--level", "345", "off"], Fix: diff -r livecd-tools-009-orig/creator/livecd-creator livecd-tools-009/creator/livecd-creator 707c707 < subprocess.call(["/sbin/chkconfig", s, "--level", "345", "off"], --- > subprocess.call(["/sbin/chkconfig", s, "--level", "2345", "off"],
Chris -- it's probably worth being consistent here with anaconda; what are you doing there?
instdata.py in anaconda does not specify any runlevel for enabling or disabling services: for svc in self.ksdata.services.disabled: iutil.execWithRedirect("/sbin/chkconfig", [svc, "off"], stdout="/dev/tty5", stderr="/dev/tty5", root=anaconda.rootPath) for svc in self.ksdata.services.enabled: iutil.execWithRedirect("/sbin/chkconfig", [svc, "on"], stdout="/dev/tty5", stderr="/dev/tty5", root=anaconda.rootPath) Should I change this to no longer just trust the defaults?
Not passing the runlevel looks like it falls back to 2345. Adjusted livecd-creator to not pass a level either