Hi,
I have just upgraded the DHCPD on one of our OpenSUSE 10.2 linux boxes to
the newest 4.1.x release from isc. I want to continue running it chroot so I
have compiled it with the chroot option enabled. However to do this the
dhcpd needs access to the proc filesystem within the chrooted environment.
I have created /var/lib/dhcp/proc to mount it on, and put an entry in the
/etc/fstab, so that it will mount at boot time. The contents of my fstab are
:-
/dev/hda2 / ext2 acl,user_xattr 1 1
/dev/hda3 /other ext2 acl,user_xattr 1 2
/dev/hda1 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
#for DHCPD chroot jail
proc /var/lib/dhcp/proc proc defaults 0 0
However this only mounts proc once on /proc at boot time, which means that
dhcp fails to start.
If I login as root and mount -a then proc is mounted on /var/lib/dhcp/proc
and I can start dhcp successfully.
I’m at a loss as to why this is failing, does anyone know how to solve this,
or how to get the updated dhcpd going without needing to multiple-mount
proc. As I’d like to upgrade our other two DHCP servers as well.
Cheers.
Phill.