i've just MFC'd two commits to stable/15[0] which add new packages for OpenPAM (FreeBSD-pam*) and Zstandard (FreeBSD-zstd*). if you have set-minimal installed, you do not need to do anything; the new packages
will be installed automatically the next time you run pkg upgrade.
if you do *not* have set-minimal installed (because you didn't install
with bsdinstall, or because you removed it after installation), you MUST install the FreeBSD-pam package, otherwise you will no longer be able to
log into the system after updating.
to display the sets you currently have installed, use this command:
% pkg query -e '%n ~ FreeBSD-set-*' '%n'
[0] 95cc7f59b7ce "libpam: Move to a new "pam" package"
8c61751d078e "zstd: Move to a new zstd package"
i've just MFC'd two commits to stable/15[0] which add new packages for OpenPAM (FreeBSD-pam*) and Zstandard (FreeBSD-zstd*). if you have set-minimal installed, you do not need to do anything; the new packages will be installed automatically the next time you run pkg upgrade.=20
=20
if you do *not* have set-minimal installed (because you didn't install
with bsdinstall, or because you removed it after installation), you MUST install the FreeBSD-pam package, otherwise you will no longer be able to log into the system after updating.
Does it make sense to add notes like this to src/UPDATING?
Is there a common place to keep updating notes for pkgbase?
hello,
i've just MFC'd two commits to stable/15[0] which add new packages for OpenPAM (FreeBSD-pam*) and Zstandard (FreeBSD-zstd*). if you have set-minimal installed, you do not need to do anything; the new packages
will be installed automatically the next time you run pkg upgrade.
if you do *not* have set-minimal installed (because you didn't install
with bsdinstall, or because you removed it after installation), you MUST install the FreeBSD-pam package, otherwise you will no longer be able to
log into the system after updating.
to display the sets you currently have installed, use this command:
% pkg query -e '%n ~ FreeBSD-set-*' '%n'
[0] 95cc7f59b7ce "libpam: Move to a new "pam" package"
8c61751d078e "zstd: Move to a new zstd package"
On Tue, Apr 07, 2026 at 12:30:50PM +0100, Lexi Winter wrote:
hello,
i've just MFC'd two commits to stable/15[0] which add new packages for
OpenPAM (FreeBSD-pam*) and Zstandard (FreeBSD-zstd*). if you have
set-minimal installed, you do not need to do anything; the new packages
will be installed automatically the next time you run pkg upgrade.
if you do *not* have set-minimal installed (because you didn't install
with bsdinstall, or because you removed it after installation), you MUST
install the FreeBSD-pam package, otherwise you will no longer be able to
log into the system after updating.
to display the sets you currently have installed, use this command:
% pkg query -e '%n ~ FreeBSD-set-*' '%n'
[0] 95cc7f59b7ce "libpam: Move to a new "pam" package"
8c61751d078e "zstd: Move to a new zstd package"
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.
All my files are owned by my old uid.
Is this the expected behaviour?
What have I done wrong?
I tried to manually add my user, with the uid/gid matching my files,
but that didn't seem to work.
How can I recover?
Thank you
Anton
On 4/21/26 08:52, Anton Shterenlikht wrote:
On Tue, Apr 07, 2026 at 12:30:50PM +0100, Lexi Winter wrote:
hello,
i've just MFC'd two commits to stable/15[0] which add new packages for
OpenPAM (FreeBSD-pam*) and Zstandard (FreeBSD-zstd*). if you have
set-minimal installed, you do not need to do anything; the new packages
will be installed automatically the next time you run pkg upgrade.
if you do *not* have set-minimal installed (because you didn't install
with bsdinstall, or because you removed it after installation), you MUST >> install the FreeBSD-pam package, otherwise you will no longer be able to >> log into the system after updating.
to display the sets you currently have installed, use this command:
% pkg query -e '%n ~ FreeBSD-set-*' '%n'
[0] 95cc7f59b7ce "libpam: Move to a new "pam" package"
8c61751d078e "zstd: Move to a new zstd package"
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
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:
hello,
i've just MFC'd two commits to stable/15[0] which add new packages for >>>> OpenPAM (FreeBSD-pam*) and Zstandard (FreeBSD-zstd*). if you have
set-minimal installed, you do not need to do anything; the new packages >>>> will be installed automatically the next time you run pkg upgrade.
if you do *not* have set-minimal installed (because you didn't install >>>> with bsdinstall, or because you removed it after installation), you MUST >>>> install the FreeBSD-pam package, otherwise you will no longer be able to >>>> log into the system after updating.
to display the sets you currently have installed, use this command:
% pkg query -e '%n ~ FreeBSD-set-*' '%n'
[0] 95cc7f59b7ce "libpam: Move to a new "pam" package"
8c61751d078e "zstd: Move to a new zstd package"
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?
Was I wrong to do "pkg install FreeBSD-set-minimal" on 15.0-RELEASE-p4?
Shall I just copy the /etc/master.passwd.pkgsave back to /etc/master.passwd?
Thank you
Anton
On 4/22/26 00:36, Anton Shterenlikht wrote:
On Tue, Apr 21, 2026 at 12:52:43PM -0700, Mark Millard 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?
After pkgbase updates, one should always scan for *.pkgsave and *.pkgnew files (say via find) and then deal with possibly
merging/updating/restoring the content --or possibly just deleting the *.pkgsave/*.pkgnew file, as appropriate based on the content.
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?
Was I wrong to do "pkg install FreeBSD-set-minimal" on 15.0-RELEASE-p4?
Shall I just copy the /etc/master.passwd.pkgsave back to /etc/master.passwd?
Do not forget to do something like:
# pwd_mkdb -p /etc/master.passwd.pkgsave
That would regenerate /etc/spwd.db (secure database) , /etc/pwd.db
(insecure database), and /etc/master.passwd --and the -p means it would
also regenerate a matching /etc/passwd as well.
Once you know the password related files are okay, you may want to
delete /etc/master.passwd.pkgsave .
You should also check if this pkgbase update or prior ones left any
other *.pkgsave or *.pkgnew files for you do deal with for finishing the
file updates involved. pkgbase does not deal with picking how some configuration file updates should be done.
On Wed, Apr 22, 2026 at 05:47:09AM -0700, Mark Millard wrote:
On 4/22/26 00:36, Anton Shterenlikht wrote:
On Tue, Apr 21, 2026 at 12:52:43PM -0700, Mark Millard 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?
After pkgbase updates, one should always scan for *.pkgsave and *.pkgnew
files (say via find) and then deal with possibly
merging/updating/restoring the content --or possibly just deleting the
*.pkgsave/*.pkgnew file, as appropriate based on the content.
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?
Was I wrong to do "pkg install FreeBSD-set-minimal" on 15.0-RELEASE-p4?
Shall I just copy the /etc/master.passwd.pkgsave back to /etc/master.passwd?
Do not forget to do something like:
# pwd_mkdb -p /etc/master.passwd.pkgsave
That would regenerate /etc/spwd.db (secure database) , /etc/pwd.db
(insecure database), and /etc/master.passwd --and the -p means it would
also regenerate a matching /etc/passwd as well.
Once you know the password related files are okay, you may want to
delete /etc/master.passwd.pkgsave .
You should also check if this pkgbase update or prior ones left any
other *.pkgsave or *.pkgnew files for you do deal with for finishing the
file updates involved. pkgbase does not deal with picking how some
configuration file updates should be done.
Mark, thank you.
I missed that this is documented in: https://wiki.freebsd.org/action/show/pkgbase?action=show&redirect=PkgBase#A.pkgsave_files
Anton
On Tue, Apr 21, 2026 at 12:52:43PM -0700, Mark Millard wrote:RELEASE-p4.
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-=
=20=20I'm still figuring out the use of pkg for base upgrades.=20
=20
For a few weeks all was working more or less well (some unexpected reboots, but I had no time to dig into that).
=20
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....
=20
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:
=20
/etc/passwd.pkgsave
/etc/master.passwd.pkgsave
Yes, I have /etc/master.passwd.pkgsave
=20
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?
Anton Shterenlikht wrote in <aeh6ddAuDClL4YFn@cmplx.uk>:
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.
It is too bad that the pkg upgrade and the pkg install man pages do not document the .pkgsave and .pkgnew behavior and how to handle handle
them. The wiki is not part of what installs on the local FreeBSD system
as documentation.
Far more files than the wiki materials list can be affected, including scripts and such. I've also had examples of configuration files:
/etc/group.pkgsave /etc/group
/etc/hosts.pkgsave /etc/hosts
/etc/sysctl.conf.pkgsave /etc/sysctl.conf
/etc/shells.pkgsave /etc/shells
/etc/ssh/sshd_config.pkgsave /etc/ssh/sshd_config
So, after adjustment, also needing: service sshd restart
/.profile.pkgsave /.profile
/.shrc.pkgsave /.shrc
/root/.profile.pkgsave /root/.profile
/root/.shrc.pkgsave /root/.shrc
/usr/home/root/.profile.pkgsave /usr/home/root/.profile /usr/home/root/.shrc.pkgsave /usr/home/root/.shrc
/etc/rc.subr.pkgsave /etc/rc.subr
/etc/rc.pkgsave /etc/rc
/etc/defaults/rc.conf.pkgsave /etc/defaults/rc.conf /etc/kyua/kyua.conf.pkgsave /etc/kyua/kyua.conf /etc/periodic/daily/223.backup-zfs.pkgsave
/etc/periodic/daily/223.backup-zfs
/etc/mail/*.pkgsave
/etc/mtree/*.pkgsave
Most of those I've not had an example of in a long time.
Even normal system programs/libraries can get such *.pkg* files. For
example, if one has patched a program or library locally and then a
later update has to deal with the patched file. The patched file can be
saved (.pkgsave) or the new file can be separately saved (.pkgnew).
Checking for such files via find or the like is a good idea.
Similar points apply to any chroot worlds and/or jail worlds that happen
to be pkgbase based.
Anton Shterenlikht wrote in <aeh6ddAuDClL4YFn@cmplx.uk>:
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.
On Wed, Apr 22, 2026 at 10:18:39PM +0100, Lexi Winter wrote:
Anton Shterenlikht wrote in <aeh6ddAuDClL4YFn@cmplx.uk>:
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
On Wed, Apr 22, 2026 at 10:01:20AM -0700, Mark Millard wrote:
It is too bad that the pkg upgrade and the pkg install man pages do not
document the .pkgsave and .pkgnew behavior and how to handle handle
them. The wiki is not part of what installs on the local FreeBSD system
as documentation.
Far more files than the wiki materials list can be affected, including
scripts and such. I've also had examples of configuration files:
/etc/group.pkgsave /etc/group
/etc/hosts.pkgsave /etc/hosts
/etc/sysctl.conf.pkgsave /etc/sysctl.conf
/etc/shells.pkgsave /etc/shells
/etc/ssh/sshd_config.pkgsave /etc/ssh/sshd_config
So, after adjustment, also needing: service sshd restart
/.profile.pkgsave /.profile
/.shrc.pkgsave /.shrc
/root/.profile.pkgsave /root/.profile
/root/.shrc.pkgsave /root/.shrc
/usr/home/root/.profile.pkgsave /usr/home/root/.profile
/usr/home/root/.shrc.pkgsave /usr/home/root/.shrc
/etc/rc.subr.pkgsave /etc/rc.subr
/etc/rc.pkgsave /etc/rc
/etc/defaults/rc.conf.pkgsave /etc/defaults/rc.conf
/etc/kyua/kyua.conf.pkgsave /etc/kyua/kyua.conf
/etc/periodic/daily/223.backup-zfs.pkgsave
/etc/periodic/daily/223.backup-zfs
/etc/mail/*.pkgsave
/etc/mtree/*.pkgsave
Most of those I've not had an example of in a long time.
Even normal system programs/libraries can get such *.pkg* files. For
example, if one has patched a program or library locally and then a
later update has to deal with the patched file. The patched file can be
saved (.pkgsave) or the new file can be separately saved (.pkgnew).
Checking for such files via find or the like is a good idea.
Similar points apply to any chroot worlds and/or jail worlds that happen
to be pkgbase based.
yes, there are lots of those:
# find / -type f -name "*.pkgsave" | wc -l
155
most under /rescue:
root@aob:~ # find /rescue -type f -name "*.pkgsave" | wc -l
149
A 14.x FreeBSD-runtime package would be replaced by a 15.0-RELEASE-p4
package would it not (if that pkgbase -> pkgbase upgrade is the type of upgrade that was done)? Would that produce a .pkgsave file for the /etc/master.passwd (given the RE-unsupported nature of 14.* pkgbase)?
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 <aeh6ddAuDClL4YFn@cmplx.uk>:
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?
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?
Did you use https://github.com/FreeBSDFoundation/pkgbasify to do the conversion (no matter which FreeBSD version was the starting point)?
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 <aeh6ddAuDClL4YFn@cmplx.uk>:
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
this would only happen if master.passwd was not marked as @configAnton did not have a pkgbase system and never ran `pkgbasify`. He
in 14, but i'm fairly sure it was. a couple of files were missing
@config, but that wasn't one of them.
Lexi Winter <ivy@freebsd.org> writes:
this would only happen if master.passwd was not marked as @config=20
in 14, but i'm fairly sure it was. a couple of files were missing
@config, but that wasn't one of them.
Anton did not have a pkgbase system and never ran `pkgbasify`. He
upgraded from 14.4 to 15.0 using `freebsd-update` then ran `pkg install FreeBSD-set-minimal` after reading your email about the new pam and zstd packages.
On Apr 24, 2026, at 4:09rC>AM, Anton Shterenlikht <lists@cmplx.uk> wrote:Where is the definitive documentation for pkgbase, conversion to same, and I guess really a general overview of what it is and "why"?
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 <aeh6ddAuDClL4YFn@cmplx.uk>:
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:
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
Where is the definitive documentation for pkgbase,
conversion to same, and I guess really a general overview
of what it is and "why"?
I generally have found the wiki to be out-of-date or just
generally "unofficial" and the place one would go looking
for information on something new before it's been released,
things that are of interest to developers but not necessarily
users... but with pkgbase in 15.x now, I kind of assumed
we'd have a handbook chapter, or at least entries for
converting and updating in the "EXAMPLES" section of the
pkg man page. This is kind of reminds me of BE's and how
they just sort of became automatic with "freebsd-update"
on ZFS systems and, while it's an excellent feature, I never
found a good "how and why" doc on that either.
On documentation in general, I am perhaps a weirdo about
this, but many times I can't quite wrap my head around
something until I have the "why" of it - then things generally
fall into place really quickly for me...
Charles
Where is the definitive documentation for pkgbase, conversion to
same, and I guess really a general overview of what it is and "why"?
On documentation in general, I am perhaps a weirdo about this,
but many times I can't quite wrap my head around something until I
have the "why" of it - then things generally fall into place really
quickly for me...
From what I've learned, initial installation of 'base' from packages* Installing on bare metal (or a VM) is roughly the same, but creating a
is roughly the same as before, but *updates* are easier to handle.
If you look at the freebsd-update script, the run time to find whichThe problem with the freebsd-update client is mostly that it is a shell
files need to be updated etc was always resource-intensive.
I have no insight in the backend of freebsd-update, maybe ColinWe first do a full release build of each patched branch. Then the freebsd-update build scripts download the build artifacts and compare
can describe the pros and cons from that side ?
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 12:06:05 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
5 files (10,064K bytes) |
| Messages: | 265,374 |