From nobody Tue Oct 14 18:00:48 2025 X-Original-To: questions@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 4cmMTT26cRz6Cp6S for ; Tue, 14 Oct 2025 18:01:01 +0000 (UTC) (envelope-from erwan@rail.eu.org) Received: from mail.rail.eu.org (shinkansen.rail.eu.org [95.216.66.89]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4cmMTQ3H6rz48gm for ; Tue, 14 Oct 2025 18:00:58 +0000 (UTC) (envelope-from erwan@rail.eu.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=rail.eu.org header.s=m2024 header.b=Ys0gtGcq; dmarc=pass (policy=none) header.from=rail.eu.org; spf=pass (mx1.freebsd.org: domain of erwan@rail.eu.org designates 95.216.66.89 as permitted sender) smtp.mailfrom=erwan@rail.eu.org Received: from [IPV6:2a01:e0a:2b7:70e4:d1df:e7bc:626a:f17a] (unknown [IPv6:2a01:e0a:2b7:70e4:d1df:e7bc:626a:f17a]) (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) (No client certificate requested) (Authenticated sender: erwan) by mail.rail.eu.org (Postfix) with ESMTPSA id D69FFCDDD for ; Tue, 14 Oct 2025 18:00:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rail.eu.org; s=m2024; t=1760464850; bh=JkQj0YjOnJfEe13go0Z1257+F7tfJ65nzSTYueeGJHk=; h=Date:Subject:To:References:From:In-Reply-To:Content-Type:From: Content-Type; b=Ys0gtGcq1X1XJYUX/YKDNLjC/cT+C3xgeQkVC7D0Dpm8jQQWh9hp196WkJCSslXPk YjGcsctWeTscY2Oz/4PJhacLy+vCfpcEpo4Kl3abjqtk6RfQUj6+mvm+bMaWw3+kyd uagAqGzBgOvRbrgyROiUkhUmH2a1Uei2ZshdkvckMdPf+xZabwpJp8kRIG/buJo2UO Vy+TeCtw4ePOplaN38aj0IAYUqjkRElmA5IweoMaMQw6bRCB0/hQXwVW6pfMl8UwNn VVMhs+DBwTGeStFkJMXwuS3ShRkFvq4zHN3oxSzpQeAGpPNRkYuTLIA89lNCMZwSZd t5DnN4eALwFRg== Message-ID: Date: Tue, 14 Oct 2025 20:00:48 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: etcupdate usage To: questions@freebsd.org References: Content-Language: fr From: Erwan David Autocrypt: addr=erwan@rail.eu.org; keydata= xsFNBFJAaOMBEADAHsjODUMNImClvj0eAW7oCKr/cjccRts2DVrslhb6UEDbxgvnCKGtRy2P A9NcILX/+lG9zaoPw0caDSXDuubrC/giKZAphUTSmd+Uqz+9WDtU602WQuP5d5S1aAUe+fzT 6l9iDSR8Fz07ajjZ791Q0P1P4EwWQDbCJvmNXAknwysX0fIAlLpDaIQ0Asa6IvG/v8TyLZSE U0NytwIfHJMJk5btrM4fdaGc+4XnTK0E2Oa+Qjab18fsBLtHGctQUrDjrWvnGj1slHrfhUrT 67e9NHZgDPmEsOeCChd1ZWurIR0AQFp/Wrz80abJltk+aFswEzOvhkriOGjt4gM31BocpNbZ +sEEg9M6skAeXvuISkfS0bCM3kZ6MgywHE98AbA+8WxiKMRKuuuTNSEmIIRQt8dn7ad/1+r1 KAZ1bkB2naCDArqnpeDb65+378qh/2J6/M0UivSMFLzxXc+AyIxucjmrK8VCWQbDwUiA6sPU W4BC7V7+5j7ELzh4JzQX2LisNzPOqkaTVTfmCgDeL7V9LZErtLlG1rYbISrLvD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2Dee3QCU+aGomTtUgKlx5xHfy vRCLde9ob7xJ76iZZvM12FWRpAul47dQ4wjkxIuGb6Bs0zI5Zr1ww2tLPix6A55hVWjoG6EJ fMivv/YX21Q5YNlVuSPl0xDVCzcUAMJYYT5Y8bZknFdN6Aftx9fNYaz2y0cF4Fgz+ye/W2R5 G+iqNdhjIYXTRFhaxtPYVpavPdMzjX2mOJKb7pRCsRVTmWY96BmUgb78uhAznslHrnvgUwB8 Bhcwc+dJeFtCNaE/1pzcr2uddkuPbczjuPU9uvEr8YUspSStqw== In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.79 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.997]; NEURAL_HAM_SHORT(-0.99)[-0.994]; DMARC_POLICY_ALLOW(-0.50)[rail.eu.org,none]; R_DKIM_ALLOW(-0.20)[rail.eu.org:s=m2024]; ONCE_RECEIVED(0.20)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[rail.eu.org:+] X-Rspamd-Queue-Id: 4cmMTQ3H6rz48gm Le 14/10/2025 à 17:27, Steve Rikli a écrit : > On Tue, Oct 14, 2025 at 09:03:40AM +0200, Erwan David wrote: >> Hello, >> >> I do not understand how to use etcupdate. I am lost in the different options. >> s there somewhere a tutorial on its usage ? > The general reference I use for updating FreeBSD, which discusses several > different methods (src, binary, etc): > > https://docs.freebsd.org/en/books/handbook/cutting-edge/ > > For upgrading systems from src (*not* pkgbase or freebsd-update) I use > this as a reference: > > "26.6. Updating FreeBSD from Source" > https://docs.freebsd.org/en/books/handbook/cutting-edge/#makeworld > > There are several examples and walk-thru, both quickstart and more > thorough + annotated. For etcupdate in particular, there is this > specific section: > > "26.6.6.1. Merging Configuration Files with etcupdate(8)" > https://docs.freebsd.org/en/books/handbook/cutting-edge/#updating-src-completing-merge-etcupdate > > in general, in my experience there isn't usually a lot you need to do > most times for etcupdate to work. I run it with every world src upgrade > procedure as advised, so my /etc/ doesn't grow stale or drift from the > installed binaries and such. > >> PS: on a machine that juste went from 14.2 to 14.3, etcuodate diff >> shows diff, but etcupdate says >> Failed to build new tree. >> >> Is it because src is not on the machine ? (not enough disk) > That's a possibility; etcupdate is for upgrading systems from src > (not freebsd-update binary upgrades) and it constructs its list of > diffs and changes from /usr/src/etc/ for reference. > >> I soon will upgrade another machine (with /usr/src this one), and I'd >> prefer to be sure to be able to use etcupdate on it (especially if I >> need to to a extract or build before upgrade) > If you're just getting started building FreeBSD from src, it's worth > reading that whole Handbook chapter 26.6 IME. > > sr. > > I use freebsd-update thus, I do not need /etc/update. Except maybe for jails : I use thin jails with a shared world using nullfs (as in https://docs.freebsd.org/en/books/handbook/jails/#creating-thin-jail-nullfs ). When updating them with freebsd-update, following https://docs.freebsd.org/en/books/handbook/jails/#upgrading-thin-jail I then update the sahred part. However /etc is not shared, thus cannot be updated. Should I use etcupdate then ?