Bug #16057
closedThe package ``post-install`` script does not run with a system upgrade on ZFS
0%
Description
As an example, the freeradius package defines the following in its xml:
<custom_php_install_command> freeradius_install_command(); </custom_php_install_command>
This function
freeradius_install_command()
calls freeradius_dictionary_resync()
which overwrites the file /usr/local/etc/raddb/dictionary
. With freeradius3 version 0.15.14, the function freeradius_dictionary_resync()
was updated to reference the new location of the dictionary.pfsense
file: from /usr/share/doc/radius/dictionary.pfsense
to /usr/local/share/pfSense/radius/dictionary.pfsense
.
After a system upgrade, the package is updated as expected:
pfSense-pkg-freeradius3: 0.15.13 -> 0.15.14 [pfSense]
However, radiusd fails to start because the old location is still referenced:
# Local dictionary, does not need to include the master dictionary ATTRIBUTE MOTP-Init-Secret 900 string ATTRIBUTE MOTP-PIN 901 string ATTRIBUTE MOTP-Offset 902 string $INCLUDE /usr/share/doc/radius/dictionary.pfsense $INCLUDE /usr/local/pkg/dictionary.mpd
Reinstalling the package from the System > Package Manager
page regenerates the file and the freeradius3 service is able to start. This indicates that the package post-install hook is not triggered with ZFS upgrades.
Updated by Marcos M 2 months ago
- Status changed from New to Needs Patch
- Assignee set to Christian McDonald
- Target version set to 2.8.0
- Plus Target Version set to 25.03
This is an issue since 24.03. The root cause here is due to a bug with pkg. It was supposed to be fixed but the upstream issue is still reproducible:
https://github.com/freebsd/pkg/issues/2292
Updated by Marcos M about 2 months ago
- Status changed from Needs Patch to Resolved
pkg has been patched locally for now:
https://github.com/pfsense/FreeBSD-ports/commit/629f859694af769c7239bb9a32e5d1bdb9f2ae0d
Updated by Jim Pingle about 2 months ago
- Subject changed from The package post-install script does not run with a system upgrade on ZFS to The package ``post-install`` script does not run with a system upgrade on ZFS