Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Apr 2021 09:56:29 -0700
From:      John Baldwin <jhb@FreeBSD.org>
To:        Graham Perrin <grahamperrin@gmail.com>
Cc:        freebsd-current <freebsd-current@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==?=
Message-ID:  <9cd6c891-28ec-46eb-cba8-1c9430913258@FreeBSD.org>
In-Reply-To: <a2e99bc6-51dd-c3c8-6eeb-21578f3cb988@gmail.com>
References:  <705578b0-9d8e-3ad2-77c2-96a20ad3a16e@gmail.com> <33a2e031-1e21-00f5-51ad-fb0b9763592f@FreeBSD.org> <a2e99bc6-51dd-c3c8-6eeb-21578f3cb988@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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)
>>>
>>> <https://reviews.freebsd.org/D28062#change-5KzY5tEtVUor>; 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
> <https://lists.freebsd.org/pipermail/freebsd-current/2021-April/079538.html>;
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9cd6c891-28ec-46eb-cba8-1c9430913258>