From owner-freebsd-current@freebsd.org Wed Apr 21 17:19:33 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6F02E5EC179 for ; Wed, 21 Apr 2021 17:19:33 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FQS392q2Yz3pKc; Wed, 21 Apr 2021 17:19:33 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro.local (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id F29B129786; Wed, 21 Apr 2021 17:19:32 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Subject: Re: Review D28062 of /usr/src/UPDATING with regard to upgrading FreeBSD and inconsistency with the FreeBSD Handbook To: Graham Perrin , freebsd-current References: <705578b0-9d8e-3ad2-77c2-96a20ad3a16e@gmail.com> From: John Baldwin Message-ID: <33a2e031-1e21-00f5-51ad-fb0b9763592f@FreeBSD.org> Date: Wed, 21 Apr 2021 10:19:31 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <705578b0-9d8e-3ad2-77c2-96a20ad3a16e@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2021 17:19:33 -0000 On 4/17/21 12:52 PM, Graham Perrin wrote: > 2) > > line 2274 > > etcupdate -p > > I get: > > > No previous tree to compare against, a sane comparison is not possible. Hmm, how did you initially install this machine? Release images should generally include a pre-populated /var/db/etcupdate so that etcupdate works. If you don't have one of those, you will have to perform an initial bootstrap of etcupdate (only once) by running 'etcupdate extract'. If you do this before you update /usr/src then 'etcupdate' will later work fine. If you are doing this after you have already updated /usr/src, you will need to run 'etcupdate diff' after 'etcupdate extract' and fix any unexpected local differences in the generated patch, e.g. by copying files from /var/db/etcupdate/current/etc to /etc. Once you have done this, 'etcupdate' will work fine on the next upgrade. However, I'm curious how you didn't get the etcupdate bootstrap when you initially installed. -- John Baldwin