When starting dhcpd in chroot it uses config file /etc/dhcp/dhcpd.conf and ignores config file /chroot/dhcpd.foo/etc/dhcp/dhcpd.conf Reproducible: Always Steps to Reproduce: 1.emerge =net-misc/dhcp-4.2.2-r2 2./etc/init.d/dhcpd.foo start 3. Actual Results: * Starting chrooted dhcpd.foo ... * start-stop-daemon: failed to start `/usr/sbin/dhcpd' [ !! ] * ERROR: dhcpd.foo failed to start Solution: add to dhcp-4.2.2-r2.ebuild in section: src_configure() after: econf \ string: --enable-early-chroot \ then: ebuild dhcp-4.2.2-r2.ebuild digest and remerge dhcp
why is this a problem ?
When using multiple dhcpd in different chrooted directories, the config file /etc/dhcp/dhcpd.conf is one for all. Dhcpd is not using different config files in chrooted directories such as /chroot/dhcpd.foo/etc/dhcp/dhcpd.conf and /chroot/dhcpd.foo1/etc/dhcp/dhcpd.conf.
should be all set now in the tree; thanks for the report! Commit message: Enable --enable-early-chroot so config files can be per-chroot http://sources.gentoo.org/net-misc/dhcp/dhcp-4.2.2-r3.ebuild?rev=1.1 http://sources.gentoo.org/net-misc/dhcp/files/dhcpd.init5?rev=1.1