From nobody Thu Apr 23 08:13:48 2026 X-Original-To: pkgbase@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 4g1TPs3LTtz6bsgD; Thu, 23 Apr 2026 08:13:53 +0000 (UTC) (envelope-from lists@cmplx.uk) Received: from cmplx.uk (cmplx.uk [185.139.32.190]) (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 (2048 bits) client-digest SHA256) (Client CN "cmplx.uk", Issuer "cmplx.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4g1TPr01Qdz3d4n; Thu, 23 Apr 2026 08:13:51 +0000 (UTC) (envelope-from lists@cmplx.uk) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cmplx.uk header.s=default header.b="Ps/BghaQ"; dmarc=pass (policy=reject) header.from=cmplx.uk; spf=pass (mx1.freebsd.org: domain of lists@cmplx.uk designates 185.139.32.190 as permitted sender) smtp.mailfrom=lists@cmplx.uk Received: from cmplx.uk (localhost [127.0.0.1]) by cmplx.uk (8.18.1/8.18.1) with ESMTPS id 63N8Dmvs092427 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 23 Apr 2026 08:13:49 GMT (envelope-from lists@cmplx.uk) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cmplx.uk; s=default; t=1776932030; bh=A1KQqMRqt9jPG6tfnwn8hlUX4L1DbmolmXdTQiDznrE=; h=Date:From:To:Subject:References:In-Reply-To; b=Ps/BghaQojnVKsPqKJSkMk6vpedptRSCfdRp7PZNHi+XbmhvhBf4woWmpLVBxU42m /o/7Qlui9XIaBIswHGmVBUMuuLgbVOHnsOhcfawQKL2EasEKKxuMq+TY/WH+4jbjgr 3oc8h9eehEVh69JKFJ5MEP5zWiQn6mHGLpHOred4= Received: (from lists@localhost) by cmplx.uk (8.18.1/8.18.1/Submit) id 63N8DmU5092426; Thu, 23 Apr 2026 08:13:48 GMT (envelope-from lists) Date: Thu, 23 Apr 2026 08:13:48 +0000 From: Anton Shterenlikht To: stable@freebsd.org, pkgbase@freebsd.org Subject: Re: [HEADS UP] stable/15: new base packages for PAM, zstd Message-ID: References: <3847a70c-f2d8-4c4a-a5f0-56a4a90168b0@yahoo.com> List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[cmplx.uk,reject]; R_DKIM_ALLOW(-0.20)[cmplx.uk:s=default]; R_SPF_ALLOW(-0.20)[+a:c]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:25795, ipnet:185.139.32.0/24, country:US]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[stable@freebsd.org,pkgbase@freebsd.org]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MAILSPIKE_FAIL(0.00)[185.139.32.190:server fail]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[cmplx.uk:+] X-Rspamd-Queue-Id: 4g1TPr01Qdz3d4n X-Spamd-Bar: --- On Wed, Apr 22, 2026 at 10:18:39PM +0100, Lexi Winter wrote: > Anton Shterenlikht wrote in : > > On Tue, Apr 21, 2026 at 12:52:43PM -0700, Mark Millard wrote: > > > On 4/21/26 08:52, Anton Shterenlikht wrote: > > > > On Tue, Apr 07, 2026 at 12:30:50PM +0100, Lexi Winter wrote: > > > > I recently upgraded Lenovo T480 laptop from some 14.x relase to 15.0-RELEASE-p4. > > > > I'm still figuring out the use of pkg for base upgrades. > > > > > > > > For a few weeks all was working more or less well (some unexpected > > > > reboots, but I had no time to dig into that). > > > > > > > > After reading your mail, I typed the pkg query command you suggested, > > > > which returned nothing. > > > > I then did "pkg install FreeBSD-set-minimal". > > > > When that completed, I realised that my user is gone.... > > > > > > > > Looking at /etc/passwd and /etc/master.passwd I see that indeed > > > > my user is not there anymore. > > > > > > Did you end up with the likes of: > > > > > > /etc/passwd.pkgsave > > > /etc/master.passwd.pkgsave > > > > Yes, I have /etc/master.passwd.pkgsave > > > > So what happened? > > Is it expected that "pkg install FreeBSD-set-minimal" > > should erase all ordinary users from /etc/master.passwd > > and save the original file as /etc/master.passwd.pkgsave? > > no, something has gone wrong here. > > how did you install this system? > > /etc/master.passwd is in the FreeBSD-runtime package, which must always > be installed on a pkgbase system. the only reason 'pkg upgrade' would > overwrite it with a pristine copy is if you somehow didn't have that > package installed, but if that was the case, the system would already > be completely non-functional. > > the only way i can imagine this happening if you had a non-pkgbase > system, then installed FreeBSD-runtime (e.g., as a dependency of > FreeBSD-set-minimal), but this should not be possible in a normal > non-pkgbase installation since the FreeBSD-base repository won't > be enabled. I admit I got a bit complacent... doing major and minor updates with freebsd-update for years about any issue, that I stopped reading UPDATING, and such. So all this is my fault probably. I used freebsd-update to upgrade from some 14.4 to 15.0. Once on 15.0, when updating ports, I noticed some differences, read some posts, and found out about pkgbase. It's possible that I missed some key steps going 14 -> 15, or made some other mistakes. But after upgrading to 15.0, all I did was "pkg upgrade". Thank you Anton