Gentoo

Issues with dhcp-4.2.2 upgrade from dhcp-3.1.3_p1

I ran into a few issues restarting this service after upgrading. The first issue was related to the location of dhcpd.conf. For some reason (even though CHROOT is clearly defined), the start up script is still trying to locate dhcpd.conf in /etc/dhcpd.conf. I had to create a symlink from the jail to /etc/dhcpd.conf.


Can't open /etc/dhcpd.conf: No such file or directory

After getting past that error (which I know I’ll want to correct down the road), I ran into the next one:


ddns-update-style ad_hoc no longer supported

For this problem, I simply commented out this config option. Not sure what the impact is yet. My goal was to get the service up and running.

The final error was a little unusual:


Error opening '/proc/net/dev' to list interfaces

I ran into a few issues restarting this service after upgrading. The first issue was related to the location of dhcpd.conf. For some reason (even though CHROOT is clearly defined), the start up script is still trying to locate dhcpd.conf in /etc/dhcpd.conf. I had to create a symlink from the jail to /etc/dhcpd.conf.


Can't open /etc/dhcpd.conf: No such file or directory

After getting past that error (which I know I’ll want to correct down the road), I ran into the next one:


ddns-update-style ad_hoc no longer supported

For this problem, I simply commented out this config option. Not sure what the impact is yet. My goal was to get the service up and running.

The final error was a little unusual:


Error opening '/proc/net/dev' to list interfaces

This turns out to be a jail issue. I created /proc/net in the chroot and copied dev from /proc/net/dev into the chroot. Now, I’m able to restart the service. My concerns are related to the ddns-update-style ad-hoc option and the issue of the symlink for security. I’ll update this post as things progress.