From nobody Fri Apr 24 08:09:12 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 4g25GB6MlJz6ZkY9; Fri, 24 Apr 2026 08:09:22 +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 4g25GB3KNcz3CBR; Fri, 24 Apr 2026 08:09:22 +0000 (UTC) (envelope-from lists@cmplx.uk) Authentication-Results: mx1.freebsd.org; none Received: from cmplx.uk (localhost [127.0.0.1]) by cmplx.uk (8.18.1/8.18.1) with ESMTPS id 63O89C58096281 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 24 Apr 2026 08:09:13 GMT (envelope-from lists@cmplx.uk) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cmplx.uk; s=default; t=1777018154; bh=ZxdavmMMPvy2+Z0UCv/1j7Lwie5LUnL4EpR+rEhCh9w=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=TXteA0VF+pxbhqee9pQrbRWl9jnu8lPCxSZp0IWk6r97es1NGsja/8EN/KThqe2q5 gkpQTNxakzuH+Y6oLUZkEBwSLxabnD9vpw0/U2OL/SSa4nfY1ydaNxoOL6f1mBy99D f6DWfikmierJvDATzALW+ae/LvZeJCj8vFwz3tVs= Received: (from lists@localhost) by cmplx.uk (8.18.1/8.18.1/Submit) id 63O89CYT096280; Fri, 24 Apr 2026 08:09:12 GMT (envelope-from lists) Date: Fri, 24 Apr 2026 08:09:12 +0000 From: Anton Shterenlikht To: Mark Millard Cc: 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> <700c882a-ae24-403a-a8e0-5ceffed569ae@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: <700c882a-ae24-403a-a8e0-5ceffed569ae@yahoo.com> X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:25795, ipnet:185.139.32.0/24, country:US] X-Rspamd-Queue-Id: 4g25GB3KNcz3CBR X-Spamd-Bar: ---- On Thu, Apr 23, 2026 at 09:54:41AM -0700, Mark Millard wrote: > On 4/23/26 01:13, Anton Shterenlikht wrote: > > 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. > > So 14.* was never in pkgbase form? correct > > > > > Once on 15.0, when updating ports, I noticed some differences, > > read some posts, and found out about pkgbase. > > So the conversion to pkgbase started from a pnon-pkgbase 15.0 to produce > a pkgbase 15.0? Not sure, maybe I never converted. What does it mean to have a "pkgbase" system? How can I check? BTW, I noticed that my versions diverged somehow: # freebsd-version -kru 15.0-RELEASE-p4 15.0-RELEASE-p4 15.0-RELEASE-p6 > > Did you use https://github.com/FreeBSDFoundation/pkgbasify to do the > conversion (no matter which FreeBSD version was the starting point)? no Does this mean my system is *not* a pkgbase system? I.e. one must use pkgbasify, as per https://wiki.freebsd.org/action/show/pkgbase to convert an non-pkgbase 15.0 to a pkgbase 15.0? I assumed that all I need is /etc/pkg/FreeBSD.conf with ports, ports-kmods and FreeBSD-base. Time to rtfm I guess... Thank you Anton