Re: [releng/13.0] make delete-old deletes /etc/host.conf, but isc-dhcpd need this file

From: Kevin Oberman <rkoberman_at_gmail.com>
Date: Thu, 24 Jun 2021 14:49:31 -0700
Ack! Didn't pay enough attention. I read 'hots.conf' and thought 'hosts'.
Sorry.
--

On Thu, Jun 24, 2021, 14:22 Ronald Klop <ronald-lists_at_klop.ws> wrote:

>
> *Van:* Kevin Oberman <rkoberman_at_gmail.com>
> *Datum:* 24 juni 2021 21:49
> *Aan:* Yaroslav Shvets <yaroslav_at_shvets.name>
> *CC:* FreeBSD Stable ML <stable_at_freebsd.org>
> *Onderwerp:* Re: [releng/13.0] make delete-old deletes /etc/host.conf,
> but isc-dhcpd need this file
>
> On Tue, Jun 22, 2021 at 11:08 PM Yaroslav Shvets <yaroslav_at_shvets.name>
> wrote:
>
> > Hello All.
> >
> > I'm not sure if I should write here.
> > During upgrading to releng/13.0 `make delete-old` deletes /etc/host.conf.
> > But isc-dhcpd can't start:
> >
> > # service isc-dhcpd start
> > /usr/local/etc/rc.d/isc-dhcpd: ERROR: unable to copy /etc/host.conf to
> > /var/db/dhcpd/etc/host.conf -- not a file or a directory
> >
> > # service isc-dhcpd status
> > dhcpd is not running.
> >
> > rc.conf:
> > -- cut --
> > dhcpd_enable="YES"                      # dhcpd enabled?
> > dhcpd_flags="-4"                        # command option(s)
> > dhcpd_conf="/usr/local/etc/dhcpd.conf"  # configuration file
> > dhcpd_ifaces="if_lan"                   # ethernet interface(s)
> > dhcpd_withumask="002"                   # file creation mask
> > dhcpd_chuser_enable="YES"               # runs w/o privileges?
> > dhcpd_withuser="dhcpd"                  # user name to run as
> > dhcpd_withgroup="dhcpd"                 # group name to run as
> > dhcpd_chroot_enable="YES"               # runs chrooted?
> > dhcpd_devfs_enable="YES"                # use devfs if available?
> > dhcpd_rootdir="/var/db/dhcpd"           # directory to run in
> > -- cut --
> >
> >
> > /usr/local/etc/rc.d/isc-dhcpd:
> > -- cut --
> > ...
> > setup_chroot ()
> > {
> >          local _hconf _hosts _ltime _rconf
> >
> >          _hconf=host.conf
> >          _hosts=hosts
> >          _ltime=localtime
> >          _rconf=resolv.conf
> > ...
> > eval "safe_copy ${${name}_etcdir}/$_hconf ${_dhcpd_etcdir}/$_hconf"
> > ...
> > -- cut --
> >
> > What is not working correctly?
> > `make delete-old` or the file "/usr/local/etc/rc.d/isc-dhcpd"?
> >
> > --
> > Yaroslav Shvets
> >
> No idea why delete-old wants to delete /etc/hosts! It has never touched
> mine running 13.0-Stable and updated every couple of weeks. I suspect that
> you may have a WITHOUT_something in /etc/src.conf that makes the delete-old
> do this.
> --
> Kevin Oberman, Part time kid herder and retired Network Engineer
> E-mail: rkoberman_at_gmail.com
> PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
> ------------------------------
>
>
>
> It is not about hosts. It is about this:
>
> $ grep host.conf ObsoleteFiles.inc
> # 20200318: host.conf was deprecated a long time ago.
> OLD_FILES+=etc/host.conf
>
> Regards,
> Ronald.
>
Received on Thu Jun 24 2021 - 21:49:31 UTC

Original text of this message