ports/131093: chrooting isc-dhcpd to aliased /home can cause devfs-related problems
bob88 at eng.ufl.edu
Wed Jan 28 21:00:12 UTC 2009
>Synopsis: chrooting isc-dhcpd to aliased /home can cause devfs-related problems
>Arrival-Date: Wed Jan 28 21:00:10 UTC 2009
>Originator: Bob Johnson
>Release: 7.0-RELEASE-p6 amd64
University of Florida
FreeBSD bumble.eng.ufl.edu 7.0-RELEASE-p6 FreeBSD 7.0-RELEASE-p6 #0: Mon Nov 24 10:59:10 UTC 2008 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
IF isc-dhcp30-server-3.0.7_4 is installed
AND /etc/rc.conf includes the following lines
AND /home is a link to /usr/home (which is not uncommon)
THEN when "/usr/local/etc/rc.d/isc-dhcpd restart" is run, the script will encounter an error with devfs (don't have exact message, but it said it couldn't create "_" directory in /dev). To then get dhcpd running requires that the user stop dhcpd, umount /usr/home/dhcpd/dev and then start dhcpd. Also, dev/_ seemed to already exist from original invocation of dhcpd.
WORKAROUND is to give actual path to home dir in rc.conf, i.e.
then everything works as expected. But it would be nice (i.e. less confusing) if the /home alias could be specified in rc.conf.
More information about the freebsd-ports-bugs