From owner-freebsd-current@freebsd.org Mon Apr 26 16:56:30 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 D58265E8449 for ; Mon, 26 Apr 2021 16:56:30 +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 4FTWJG4RnGz3rhs; Mon, 26 Apr 2021 16:56:30 +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 242292228B; Mon, 26 Apr 2021 16:56:30 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Subject: =?UTF-8?Q?Re=3a_etcupdate_-p=3a_No_previous_tree_to_compare_against?= =?UTF-8?Q?=2c_a_sane_comparison_is_not_possible=2e_=28was=3a_Review_D28062_?= =?UTF-8?B?4oCmKQ==?= To: Graham Perrin Cc: freebsd-current References: <705578b0-9d8e-3ad2-77c2-96a20ad3a16e@gmail.com> <33a2e031-1e21-00f5-51ad-fb0b9763592f@FreeBSD.org> From: John Baldwin Message-ID: <9cd6c891-28ec-46eb-cba8-1c9430913258@FreeBSD.org> Date: Mon, 26 Apr 2021 09:56:29 -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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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: Mon, 26 Apr 2021 16:56:30 -0000 On 4/24/21 4:42 AM, Graham Perrin wrote: > On 21/04/2021 18:19, John Baldwin wrote: >> 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. > > > Sorry for not replying sooner. > > It's not an answer to your question, but might the thread at > > be relevant? Yes, you might indeed have hit this bug (which has since been fixed). You might have to 'etcupdate extract' and then manually review 'etcupdate diff' to see if you have any unexpected diffs to recover. Sorry. :-/ -- John Baldwin