Bug 147857 - net/isc-dhcp41-server removes /var/db/dhcpd, chroot-enabled setups break after upgrade
Summary: net/isc-dhcp41-server removes /var/db/dhcpd, chroot-enabled setups break afte...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Wesley Shields
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-14 19:50 UTC by Henno Schooljan
Modified: 2010-07-12 03:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henno Schooljan 2010-06-14 19:50:01 UTC
When dhcpd_chroot_enable="YES" is specified, a restart of the dhcpd deamon after an upgrade won't recreate the /var/db/dhcpd directory structure, but instead exists with this error:


Internet Systems Consortium DHCP Server 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
chroot("/var/db/dhcpd"): No such file or directory

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
/usr/local/etc/rc.d/isc-dhcpd: ERROR:  Configuration file sanity check failed

Fix: 

Do not remove the /var/db/dhcpd directory structure during a deinstallation, it is variable data so it should stay.
How-To-Repeat: Start dhcpd server with chroot option enabled.
Reinstall or upgrade dhcpd using ports.
Start the dhcpd daemon again.
Comment 1 Gavin Atkinson freebsd_committer freebsd_triage 2010-06-14 20:11:39 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

Misfiled, ports bug.
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2010-06-14 20:12:33 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wxs

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 3 dfilter service freebsd_committer freebsd_triage 2010-07-12 02:54:35 UTC
wxs         2010-07-12 01:54:26 UTC

  FreeBSD ports repository

  Modified files:
    net/isc-dhcp41-server Makefile distinfo pkg-plist 
    net/isc-dhcp41-server/files isc-dhcpd.in 
  Added files:
    net/isc-dhcp41-server/files patch-server__Makefile.am 
  Removed files:
    net/isc-dhcp41-server pkg-deinstall 
  Log:
  [1]: Don't remove /var/db/dhcpd on deinstall. This was breaking chroot setups
       on upgrade.
  [2]: Install more man pages.
  [3]: Add LDAP configuration support. This was present in the other port.
  
  PR:             [1]: ports/147857
                  [2]: ports/147917
                  [3]: ports/147869
  Submitted by:   [1]: Henno Schooljan <henno@schooljan.nl>
                  [2]: Craig Leres <leres@ee.lbl.gov>
                  [3]: Alexander V. Ribchansky <triosoft@triosoft.com.ua>
  
  Revision  Changes    Path
  1.5       +59 -4     ports/net/isc-dhcp41-server/Makefile
  1.3       +3 -0      ports/net/isc-dhcp41-server/distinfo
  1.2       +1 -101    ports/net/isc-dhcp41-server/files/isc-dhcpd.in
  1.1       +15 -0     ports/net/isc-dhcp41-server/files/patch-server__Makefile.am (new)
  1.2       +0 -22     ports/net/isc-dhcp41-server/pkg-deinstall (dead)
  1.3       +4 -1      ports/net/isc-dhcp41-server/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Wesley Shields freebsd_committer freebsd_triage 2010-07-12 02:54:40 UTC
State Changed
From-To: open->closed

Committed. Thanks!