From owner-freebsd-current@freebsd.org Tue May 10 15:55:38 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6C5A3B35906 for ; Tue, 10 May 2016 15:55:38 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 5CDE51C6B; Tue, 10 May 2016 15:55:38 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from FreeBSD.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by freefall.freebsd.org (Postfix) with ESMTP id 1E6C2179E; Tue, 10 May 2016 15:55:38 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Date: Tue, 10 May 2016 15:55:37 +0000 From: Glen Barber To: Allan Jude Cc: freebsd-current@freebsd.org Subject: Re: HEADS-UP: installworld on r299292 through r299317 will replace master.passwd, passwd, and group files Message-ID: <20160510155537.GH47527@FreeBSD.org> References: <20160510055341.GA47527@FreeBSD.org> <20160510081844.54f1cb28@freyja.zeit4.iv.bundesimmobilien.de> <20160510063229.GC47527@FreeBSD.org> <5731F0A7.1060403@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yxUjl2uTvAeSG6i1" Content-Disposition: inline In-Reply-To: <5731F0A7.1060403@freebsd.org> X-Operating-System: FreeBSD 11.0-CURRENT amd64 X-SCUD-Definition: Sudden Completely Unexpected Dataloss X-SULE-Definition: Sudden Unexpected Learning Event X-PEKBAC-Definition: Problem Exists, Keyboard Between Admin/Computer User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 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: Tue, 10 May 2016 15:55:38 -0000 --yxUjl2uTvAeSG6i1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 10, 2016 at 10:31:03AM -0400, Allan Jude wrote: > On 2016-05-10 02:32, Glen Barber wrote: > > On Tue, May 10, 2016 at 08:25:22AM +0200, Thomas Zander wrote: > >> On 10 May 2016 at 08:18, O. Hartmann wro= te: > >> > >>> I haven't figured out so far how far this goes. Lucky for those having > >>> recent /etc/ backups. A pity FreeBSD doens't backup this by default. > >> > >> After having shot myself in the foot some time ago, "zfs snapshot" has > >> become a part of my standard upgrade procedures :-) > >> > >=20 > > No argument that this is valuable, but we cannot rely on filesystem > > specific solutions. Similar topic came up a few days ago following > > lunch. It got me thinking of a better way to ensure this kind of thing > > does not require home-grown foot protection from cannons. > >=20 > > It should be fairly trivial to automatically backup /etc (and related) > > when 'distribution' is run, either intentionally or accidentally (or by > > commit mistakes, such as this). > >=20 >=20 > I wonder if you couldn't actually package it. Before installing the new > /etc, it would create a package of what is in your old /etc and put it > somewhere safe, so an upgrade could be reverted by manually installing > that package. >=20 In the context through which the above was intended, it wasn't intended for a new 'package' (assuming you mean pkg(8)). Just an archive of what was there before the changes, so some notion of a "rollback" (filesystem agnostic) is possible. Glen --yxUjl2uTvAeSG6i1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXMgR5AAoJEAMUWKVHj+KTkr4P/iVAs74qg00uZHhp9VCZxVMp dRdMAbabPrxaxFhaMDIS4QlsMFjaWGT5+ShU7927KlSEd+ZK/s2lSNYIZv4r29Ik cFD2rsdzrIlYgDZWSLtNoXKLCNsVGtKHz0pxwnghJWCOZlP3Sox6yTj4siULuXah GYQWM7QMLC1HFNnwgLf0iAeWXyV4KwzfssL8HRowoXPbl5GZZaSWM9TeAhQjzQaM jHfv/u9S1X3spXLf5icB3g7R/wmStBLQLdvI68BYMBXEruq0u2Fp3KPjL6pAHs0H xlG3pFTXvyklz7TmW19dYRYDMMJh7XotNkdLu7cTCAh50Gu5iBafZaNCz5SNuRxj bmB6uy5YUmroryb8FW6TfqFy0ZpfhuXqIyicT34KWTZhJRU8Nd5da0k3o48kqBis 7mAkXC9CGW4Fi5A/ZivBXVD6pgNM7IZ10pCi5zkxQcAfRw1q7A2PShpmoKXc87cy o1cUW9RBF7uLeIgeVhFAB0AQslxe4GXHFDLVcpGjfVq8IFiQPdsjPU+p7ZfPgQhM hhA6TlM66t74IwsmAqO94wVBJj+UDeJ9Jn1oSRmNwLRlQlNhuT5UJ/KjcWbQV18I +jpeDkcMXUA95B2v/N0gWsdabcZP8oyxu4lq5Ljf6fo7zjUtah5apAdpQaoVtcnK 6vv1N7OBdf7msmDJ8is3 =79sH -----END PGP SIGNATURE----- --yxUjl2uTvAeSG6i1--