Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 287469 Details for
Bug 383961
net-misc/dhcp-4.2.2-r2 init script is not suitable for chroot usage
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
proc mount failure
dhcpd-chroot.txt (text/plain), 9.88 KB, created by
Andreas Schürch
on 2011-09-23 06:37:30 UTC
(
hide
)
Description:
proc mount failure
Filename:
MIME Type:
Creator:
Andreas Schürch
Created:
2011-09-23 06:37:30 UTC
Size:
9.88 KB
patch
obsolete
> >archer ~ # /etc/init.d/dhcpd start > * Starting chrooted dhcpd ... > * start-stop-daemon: failed to start `/usr/sbin/dhcpd' [ !! ] > * ERROR: dhcpd failed to start >archer ~ # /etc/init.d/dhcpd --debug start >+ _conf_d=/etc/init.d/../conf.d >+ _c=dhcpd >+ '[' -n dhcpd -a dhcpd '!=' dhcpd ']' >+ unset _c >+ sourcex -e /etc/init.d/../conf.d/dhcpd.default >+ '[' -e = -e ']' >+ shift >+ '[' -e /etc/init.d/../conf.d/dhcpd.default ']' >+ return 1 >+ sourcex -e /etc/init.d/../conf.d/dhcpd >+ '[' -e = -e ']' >+ shift >+ '[' -e /etc/init.d/../conf.d/dhcpd ']' >+ . /etc/init.d/../conf.d/dhcpd >++ DHCPD_CHROOT=/var/lib/dhcp/chroot >++ DHCPD_IFACE=eth0 >+ unset _conf_d >+ sourcex -e /etc/rc.conf >+ '[' -e = -e ']' >+ shift >+ '[' -e /etc/rc.conf ']' >+ . /etc/rc.conf >++ rc_shell=/sbin/sulogin >++ unicode=YES >++ rc_tty_number=12 >+ '[' -n '' ']' >+ sourcex /etc/init.d/dhcpd >+ '[' /etc/init.d/dhcpd = -e ']' >+ . /etc/init.d/dhcpd >++ opts=configtest >++ DHCPD_CONF=/etc/dhcp/dhcpd.conf >+ unset _d >+ unset _f >+ '[' -n start ']' >+ '[' start = depend ']' >+ for _cmd in describe start stop status '${extra_commands:-$opts}' '$extra_started_commands' >+ '[' describe = start ']' >+ for _cmd in describe start stop status '${extra_commands:-$opts}' '$extra_started_commands' >+ '[' start = start ']' >++ command -v start >+ '[' start = start ']' >+ yesno >+ '[' -z '' ']' >+ return 1 >+ unset _cmd >++ command -v start_pre >+ '[' '' = start_pre ']' >+ start >+ case " ${DHCPD_OPTS} " in >+ DHCPD_OPTS=' -cf /etc/dhcp/dhcpd.conf' >+ '[' '!' -f /var/lib/dhcp/chroot//etc/dhcp/dhcpd.conf ']' >+ checkconfig >+ dhcpd -cf /etc/dhcp/dhcpd.conf -chroot /var/lib/dhcp/chroot -t >+ local ret=0 >+ '[' 0 -ne 0 ']' >+ return 0 >+ checkpath -d -o dhcp:dhcp /var/run/dhcp /var/lib/dhcp >++ get_var lease-file-name >++ sed -n 's/^[[:blank:]]\?lease-file-name "*\([^#";]\+\).*/\1/p' /var/lib/dhcp/chroot//etc/dhcp/dhcpd.conf >+ local leasefile= >+ leasefile=/var/lib/dhcp/dhcpd.leases >+ '[' '!' -f /var/lib/dhcp/chroot/var/lib/dhcp/dhcpd.leases ']' >+ '[' -n /var/lib/dhcp/chroot ']' >+ LD_PRELOAD=' /usr/lib/libresolv.so' >+ export 'LD_PRELOAD= /usr/lib/libresolv.so /usr/lib/libnss_dns.so' >+ LD_PRELOAD=' /usr/lib/libresolv.so /usr/lib/libnss_dns.so' >++ get_var pid-file-name >++ sed -n 's/^[[:blank:]]\?pid-file-name "*\([^#";]\+\).*/\1/p' /var/lib/dhcp/chroot//etc/dhcp/dhcpd.conf >+ local pidfile= >+ pidfile=/var/run/dhcp/dhcpd.pid >+ ebegin 'Starting chrooted dhcpd' > * Starting chrooted dhcpd ... >+ start-stop-daemon --start --exec /usr/sbin/dhcpd --pidfile /var/lib/dhcp/chroot//var/run/dhcp/dhcpd.pid -- -cf /etc/dhcp/dhcpd.conf -q -pf /var/run/dhcp/dhcpd.pid -lf /var/lib/dhcp/dhcpd.leases -user dhcp -group dhcp -chroot /var/lib/dhcp/chroot eth0 > * start-stop-daemon: failed to start `/usr/sbin/dhcpd' >+ eend 1 [ !! ] >+ exit 1 > * ERROR: dhcpd failed to start >archer ~ # tail /var/log/messages -n 40 >Sep 23 07:03:38 localhost dhcpd: on ftp.isc.org. Features have been added and other changes >Sep 23 07:03:38 localhost dhcpd: have been made to the base software release in order to make >Sep 23 07:03:38 localhost dhcpd: it work better with this distribution. >Sep 23 07:03:38 localhost dhcpd: >Sep 23 07:03:38 localhost dhcpd: Please report for this software via the Gentoo Bugzilla site: >Sep 23 07:03:38 localhost dhcpd: http://bugs.gentoo.org/ >Sep 23 07:03:38 localhost dhcpd: >Sep 23 07:03:38 localhost dhcpd: exiting. >Sep 23 07:03:38 localhost /etc/init.d/dhcpd[1329]: start-stop-daemon: failed to start `/usr/sbin/dhcpd' >Sep 23 07:03:38 localhost /etc/init.d/dhcpd[1315]: ERROR: dhcpd failed to start >Sep 23 07:03:44 localhost dhcpd: Internet Systems Consortium DHCP Server 4.2.2 Gentoo-r2 >Sep 23 07:03:44 localhost dhcpd: Copyright 2004-2011 Internet Systems Consortium. >Sep 23 07:03:44 localhost dhcpd: All rights reserved. >Sep 23 07:03:44 localhost dhcpd: For info, please visit https://www.isc.org/software/dhcp/ >Sep 23 07:03:44 localhost dhcpd: Internet Systems Consortium DHCP Server 4.2.2 Gentoo-r2 >Sep 23 07:03:44 localhost dhcpd: Copyright 2004-2011 Internet Systems Consortium. >Sep 23 07:03:44 localhost dhcpd: All rights reserved. >Sep 23 07:03:44 localhost dhcpd: For info, please visit https://www.isc.org/software/dhcp/ >Sep 23 07:03:44 localhost dhcpd: Internet Systems Consortium DHCP Server 4.2.2 Gentoo-r2 >Sep 23 07:03:44 localhost dhcpd: Copyright 2004-2011 Internet Systems Consortium. >Sep 23 07:03:44 localhost dhcpd: All rights reserved. >Sep 23 07:03:44 localhost dhcpd: For info, please visit https://www.isc.org/software/dhcp/ >Sep 23 07:03:44 localhost dhcpd: Wrote 0 class decls to leases file. >Sep 23 07:03:44 localhost dhcpd: Wrote 0 deleted host decls to leases file. >Sep 23 07:03:44 localhost dhcpd: Wrote 0 new dynamic host decls to leases file. >Sep 23 07:03:44 localhost dhcpd: Wrote 0 leases to leases file. >Sep 23 07:03:44 localhost dhcpd: Error opening '/proc/net/dev' to list interfaces >Sep 23 07:03:44 localhost dhcpd: Can't get list of interfaces. >Sep 23 07:03:44 localhost dhcpd: >Sep 23 07:03:44 localhost dhcpd: This version of ISC DHCP is based on the release available >Sep 23 07:03:44 localhost dhcpd: on ftp.isc.org. Features have been added and other changes >Sep 23 07:03:44 localhost dhcpd: have been made to the base software release in order to make >Sep 23 07:03:44 localhost dhcpd: it work better with this distribution. >Sep 23 07:03:44 localhost dhcpd: >Sep 23 07:03:44 localhost dhcpd: Please report for this software via the Gentoo Bugzilla site: >Sep 23 07:03:44 localhost dhcpd: http://bugs.gentoo.org/ >Sep 23 07:03:44 localhost dhcpd: >Sep 23 07:03:44 localhost dhcpd: exiting. >Sep 23 07:03:44 localhost /etc/init.d/dhcpd[1346]: start-stop-daemon: failed to start `/usr/sbin/dhcpd' >Sep 23 07:03:44 localhost /etc/init.d/dhcpd[1332]: ERROR: dhcpd failed to start >archer ~ # mount >rootfs on / type rootfs (rw) >proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) >sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) >udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755) >devpts on /dev/pts type devpts (rw,relatime,mode=600) >/dev/vda3 on / type ext3 (rw,noatime,errors=continue,barrier=0,data=writeback) >rc-svcdir on /lib/rc/init.d type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755) >debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime) >fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) >shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime) >usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85) >binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) >192.168.0.3:/usr/portage on /usr/portage type nfs (rw,nolock,addr=192.168.0.3) >archer ~ # mount -t proc none /var/lib/dhcp/chroot/proc >archer ~ # /etc/init.d/dhcpd --debug start >+ _conf_d=/etc/init.d/../conf.d >+ _c=dhcpd >+ '[' -n dhcpd -a dhcpd '!=' dhcpd ']' >+ unset _c >+ sourcex -e /etc/init.d/../conf.d/dhcpd.default >+ '[' -e = -e ']' >+ shift >+ '[' -e /etc/init.d/../conf.d/dhcpd.default ']' >+ return 1 >+ sourcex -e /etc/init.d/../conf.d/dhcpd >+ '[' -e = -e ']' >+ shift >+ '[' -e /etc/init.d/../conf.d/dhcpd ']' >+ . /etc/init.d/../conf.d/dhcpd >++ DHCPD_CHROOT=/var/lib/dhcp/chroot >++ DHCPD_IFACE=eth0 >+ unset _conf_d >+ sourcex -e /etc/rc.conf >+ '[' -e = -e ']' >+ shift >+ '[' -e /etc/rc.conf ']' >+ . /etc/rc.conf >++ rc_shell=/sbin/sulogin >++ unicode=YES >++ rc_tty_number=12 >+ '[' -n '' ']' >+ sourcex /etc/init.d/dhcpd >+ '[' /etc/init.d/dhcpd = -e ']' >+ . /etc/init.d/dhcpd >++ opts=configtest >++ DHCPD_CONF=/etc/dhcp/dhcpd.conf >+ unset _d >+ unset _f >+ '[' -n start ']' >+ '[' start = depend ']' >+ for _cmd in describe start stop status '${extra_commands:-$opts}' '$extra_started_commands' >+ '[' describe = start ']' >+ for _cmd in describe start stop status '${extra_commands:-$opts}' '$extra_started_commands' >+ '[' start = start ']' >++ command -v start >+ '[' start = start ']' >+ yesno >+ '[' -z '' ']' >+ return 1 >+ unset _cmd >++ command -v start_pre >+ '[' '' = start_pre ']' >+ start >+ case " ${DHCPD_OPTS} " in >+ DHCPD_OPTS=' -cf /etc/dhcp/dhcpd.conf' >+ '[' '!' -f /var/lib/dhcp/chroot//etc/dhcp/dhcpd.conf ']' >+ checkconfig >+ dhcpd -cf /etc/dhcp/dhcpd.conf -chroot /var/lib/dhcp/chroot -t >+ local ret=0 >+ '[' 0 -ne 0 ']' >+ return 0 >+ checkpath -d -o dhcp:dhcp /var/run/dhcp /var/lib/dhcp >++ get_var lease-file-name >++ sed -n 's/^[[:blank:]]\?lease-file-name "*\([^#";]\+\).*/\1/p' /var/lib/dhcp/chroot//etc/dhcp/dhcpd.conf >+ local leasefile= >+ leasefile=/var/lib/dhcp/dhcpd.leases >+ '[' '!' -f /var/lib/dhcp/chroot/var/lib/dhcp/dhcpd.leases ']' >+ '[' -n /var/lib/dhcp/chroot ']' >+ LD_PRELOAD=' /usr/lib/libresolv.so' >+ export 'LD_PRELOAD= /usr/lib/libresolv.so /usr/lib/libnss_dns.so' >+ LD_PRELOAD=' /usr/lib/libresolv.so /usr/lib/libnss_dns.so' >++ get_var pid-file-name >++ sed -n 's/^[[:blank:]]\?pid-file-name "*\([^#";]\+\).*/\1/p' /var/lib/dhcp/chroot//etc/dhcp/dhcpd.conf >+ local pidfile= >+ pidfile=/var/run/dhcp/dhcpd.pid >+ ebegin 'Starting chrooted dhcpd' > * Starting chrooted dhcpd ... >+ start-stop-daemon --start --exec /usr/sbin/dhcpd --pidfile /var/lib/dhcp/chroot//var/run/dhcp/dhcpd.pid -- -cf /etc/dhcp/dhcpd.conf -q -pf /var/run/dhcp/dhcpd.pid -lf /var/lib/dhcp/dhcpd.leases -user dhcp -group dhcp -chroot /var/lib/dhcp/chroot eth0 >+ eend 0 [ ok ] >+ save_options chroot /var/lib/dhcp/chroot >+ save_options pidfile /var/run/dhcp/dhcpd.pid >++ command -v start_post >+ '[' '' = start_post ']' >+ shift >+ continue 2 >+ '[' -n '' ']' >archer ~ # ps -ef | grep dhc >dhcp 1378 1 0 07:05 ? 00:00:00 /usr/sbin/dhcpd -cf /etc/dhcp/dhcpd.conf -q -pf /var/run/dhcp/dhcpd.pid -lf /var/lib/dhcp/dhcpd.leases -user dhcp -group dhcp -chroot /var/lib/dhcp/chroot eth0 >root 1384 846 0 07:05 pts/0 00:00:00 grep --colour=auto dhc >root 2901 1 0 Sep21 ? 00:00:00 /sbin/dhcpcd -q >archer ~ #
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 383961
: 287469