[linux-fai] atd started during installation

Thomas Gebhardt gebhardt at HRZ.Uni-Marburg.DE
Thu Jun 8 11:31:55 CEST 2000


Hi,

> Any ideas how to use dpkg-divert to replace start-stop-daemon ?

I put 

    # don't start daemons during installation
    chroot $FAI_ROOT /usr/sbin/dpkg-divert --add --rename --divert\
        /sbin/start-stop-daemon.orig /sbin/start-stop-daemon
    ln -s /bin/true $FAI_ROOT/sbin/start-stop-daemon

into rcS_fai/fai_install (after the line "install_base")

and

	"/bin/rm -f ${target}/sbin/start-stop-daemon"
	"/usr/sbin/chroot ${target} /usr/sbin/dpkg-divert --remove --rename --divert /sbin/start-stop-daemon.orig /sbin/start-stop-daemon"

into the shellcommands section of the LAST cfengine script. It seems to
work for me.

> Gruss Thomas

Gruss, Thomas




More information about the linux-fai mailing list