Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Sep 2025 17:56:58 -0700
From:      Steve Kargl <kargls@comcast.net>
To:        freebsd-current@freebsd.org
Subject:   Re: incantation for etcupdate to just blow away all old things?
Message-ID:  <76a68bca-f0dd-4f7a-85a1-61c300abe031@comcast.net>
In-Reply-To: <75673CAD-3CED-42B0-BE61-23097674C88F@gushi.org>
References:  <AA91698D-1A81-4D67-B607-FDB87D9B4A41@gushi.org> <aMn0WM9V9xLNduLC@troutmask.apl.washington.edu> <75673CAD-3CED-42B0-BE61-23097674C88F@gushi.org>

index | next in thread | previous in thread | raw e-mail

On 9/16/25 16:39, Dan Mahoney (Ports) wrote:
> 
> 
>> On Sep 16, 2025, at 4:35 PM, Steve Kargl <sgk@troutmask.apl.washington.edu> wrote:
>>
>> On Tue, Sep 16, 2025 at 04:11:17PM -0700, Dan Mahoney (Ports) wrote:
>>> Hey there folks,
>>>
>>> In doing a bunch of updates on my 15 VM recently to get around some of the recent breakages, I haven't been fully religious about running etcupdate every time, and it's now complaining that I have some results from a prior merge.
>>>
>>> The man page is *long*, and we have puppet manifests to alter the few things we care about from a stock system (mostly some sshd stuff).
>>>
>>> Is there a simple etcupdate command that says "I don't care about fancy 3-way merges and diffs, please just blow my /etc back to stock and I'll correct it with puppet?"
>>>
>>
>> etcupdate revert file
> 
> that seems to be for a single file:
> 
> "     The revert mode is used to restore the stock versions of files.  In this
>       mode, etcupdate installs the stock version of requested files.  This mode
>       cannot be used to restore directories, only individual files.
> "
> 
>   is there a mechanism for *all* of /etc?

Never tried it, but you may be about to do

find /etc -type f | xargs etcupdate revert

-- 
steve


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?76a68bca-f0dd-4f7a-85a1-61c300abe031>