Summary: | net-misc/dhcp-4.2.2-r2 init script is not suitable for chroot usage | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andreas Schürch <nativemad> |
Component: | New packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | proc mount failure |
Description
Andreas Schürch
2011-09-21 14:52:42 UTC
post the output (as an attachment) of running `/etc/init.d/dhcpd --debug start` if you read the init script you'll see that it explicitly tries to mount /proc. and it works fine for me. # /etc/init.d/dhcpd start # mount | grep proc proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) /proc on /var/lib/dhcp/chroot/proc type none (rw,bind) Created attachment 287469 [details]
proc mount failure
I got rid of the "Not configured to listen on any interfaces!" message by re-declaring the subnet of the nic in dhcpd.conf. Somehow i must have lost it with etc-update... :-)
The Problem is that dhcpd.init4 does not get installed:
archer dhcp # cat /etc/init.d/dhcpd | grep "proc"
archer dhcp # cat /usr/portage/net-misc/dhcp/files/dhcpd.init4 | grep proc
checkpath -d -o root:root -m 755 "${chroot}"/dev "${chroot}"/etc "${chroot}"/proc
if ! mountinfo -q "${chroot}/proc" ; then
mount --bind /proc "${chroot}/proc"
if mountinfo -q "${chroot}/proc" ; then
umount "${chroot}/proc"
archer dhcp # cat /usr/portage/net-misc/dhcp/dhcp-4.2.2-r2.ebuild | grep init
newinitd "${FILESDIR}"/dhcpd.init3 dhcpd || die
newinitd "${FILESDIR}"/dhcrelay.init2 dhcrelay || die
if [[ -e "${ROOT}"/etc/init.d/dhcp ]] ; then
ewarn "WARNING: The dhcp init script has been renamed to dhcpd"
ewarn "/etc/init.d/dhcp and /etc/conf.d/dhcp need to be removed and"
stupid portage etc-update kept me from noticing that the older init.d was getting installed Commit message: Install newer init.d script http://sources.gentoo.org/net-misc/dhcp/dhcp-4.2.2-r2.ebuild?r1=1.5&r2=1.6 |