[Bug 296383] pkgbase upgrade to 15.1 restores default /etc/pam.d/* configuration
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 12 Aug 2026 14:42:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296383
Dan Langille <dvl@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dvl@FreeBSD.org
--- Comment #2 from Dan Langille <dvl@FreeBSD.org> ---
I was logging a similar PR when I noticed this one. I have hit this too, but
only noticed it on file.
I recently upgraded hosts from FreeBSD 15.0 to 15.1 via pkgbase. Every one of
them missed a merge of /etc/pam.d/sshd [1]
Today I tried to reproduce that and succeeded. [2]
The steps are:
* install a FreeBSD 15.0-RELEASE jail
* append a line to /etc/pam.d/sshd - add a comment of your choice
* pkgbasify the jail
* upgrade the jail to 15.1 [3]
* the line added to etc/pam.d/sshd is gone
Happy to test a patch, but don't know how to create one for this
1 -
https://dan.langille.org/2026/08/07/freebsd-etc-pam-d-sshd-was-updated-overwritten-no-merge-attempt/
2 -
https://dan.langille.org/2026/08/12/attempting-to-reproduce-the-missing-etcmerge-from-15-0-to-15-1-upgrade/
3 - the steps I used to upgrade the jail:
sudo pkg -j testingmerge upgrade -r FreeBSD-base
sudo pkg -j testingmerge -oABI=FreeBSD:15:$(uname -p) -oOSVERSION=1501000
upgrade -r FreeBSD-base
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.