From nobody Thu Jun 24 21:49:31 2021 X-Original-To: stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7F59B9F0779 for ; Thu, 24 Jun 2021 21:49:43 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G9v1M2Zyfz3v2Z for ; Thu, 24 Jun 2021 21:49:43 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-wr1-x42c.google.com with SMTP id f15so8282335wro.8 for ; Thu, 24 Jun 2021 14:49:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zw7zYPza2xFM2y7u54Pyy6qdweNOyqyKtGi37uZMrwc=; b=RnEZF15G2fOkjKswY3QFAvW0vbSCTTi7sBQn8a2obycP8yLDIXdwRO/nK1FmCfgr19 ZZFCT4LhXl6VH5/o74Pt/qbQOSImgRKGuJvd50KXLm19riTu9xwTthnXCPg0AlAleKn7 Z6ZJ5AKxW2NFqOhQgitcFYl4NZwVW5DpDZzaGQL0fjZIXYKOJU+O+Y9PKSoVwsvO6LJC sm2sToje5XLUUX+nPVSPbt92j2KcyJGWoQ08U8xLsjTZ5OTLJhZa2/hFPhyL3RxIahCf mycziprnNCfbstiVTPy2d6BDyBJMAtymu5nZAdjJ/zpGI7ASv8jmM/K/XTOmwsLDg2hC PWSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zw7zYPza2xFM2y7u54Pyy6qdweNOyqyKtGi37uZMrwc=; b=XJsycNurJauZ/jDRb4qME7GH6+tEGzGCDdiM5ri4Hn5htK2sPZ79+jPB4xE5eTyBFq DwT+SgAE7ROmf9x2DYqZWeIUvnV88GxvVxOospRGwmBCu7lIoWLGI2y3RedicPccgyyX uMkkrFQxJ3c8I2dK+31xJGoepJKGBhEMR3GWwoTiV/Yvw0+Ro6CW1+uddGPJGx/Hho8I SDxC78hxRAuU3YEm6uPXGRyor9PM/6Mk0WNqy3vGRdXR1s56b7bq7M/3sWwCnMNFy/YR qU5DSrb8Zd/MGncH6jL0lzBsDhoX/fy1LT7Kegtd6rAMi7ucGQxqLO9Wroco60fC36bt 7EpQ== X-Gm-Message-State: AOAM533ZDwioPNm06jX+LboAy1yxcR1xNBoDQeAly09uSxBSwSiHF08R xhFSJe6kCoBgvORr41/I+TgM6Cows1h9dKGBEmo= X-Google-Smtp-Source: ABdhPJyxWBOqv5fOfga1g1rv0eSxilL2WxkEyXytpBUEMm6dj42srpsXe6QSqFxA5NlYE8LzburqpCf7z7Ph5iSe7+A= X-Received: by 2002:adf:c843:: with SMTP id e3mr7104134wrh.25.1624571381351; Thu, 24 Jun 2021 14:49:41 -0700 (PDT) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 References: <764543478.13087.1624569747065@localhost> In-Reply-To: <764543478.13087.1624569747065@localhost> From: Kevin Oberman Date: Thu, 24 Jun 2021 14:49:31 -0700 Message-ID: Subject: Re: [releng/13.0] make delete-old deletes /etc/host.conf, but isc-dhcpd need this file To: Ronald Klop Cc: Yaroslav Shvets , FreeBSD Stable ML Content-Type: multipart/alternative; boundary="00000000000019073b05c58a00af" X-Rspamd-Queue-Id: 4G9v1M2Zyfz3v2Z X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y --00000000000019073b05c58a00af Content-Type: text/plain; charset="UTF-8" Ack! Didn't pay enough attention. I read 'hots.conf' and thought 'hosts'. Sorry. -- On Thu, Jun 24, 2021, 14:22 Ronald Klop wrote: > > *Van:* Kevin Oberman > *Datum:* 24 juni 2021 21:49 > *Aan:* Yaroslav Shvets > *CC:* FreeBSD Stable ML > *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 > 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@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. > --00000000000019073b05c58a00af--