Disable uninstall & reinstall packages after restore a config on pfSense 2.6.0
-
Hello,
I want to know if there is a way to deactivate triggering packages reinstallation in background on pfSense 2.6.0.
Thanks.
-
That's an easy one.
After pfSense, do not use the 'import config' under DiagnosticsBackup & RestoreBackup & Restore.
Or, bit more tricky : before you import the config.xml, remove the list with 'installed' packages from the config.xml.
The config.xml can be edited. Just keep in mind : All errors you make will back fire ;) -
Yeah just do that.
It is possible to disable the pkg reinstall process but not in any easy way. For example if you interrupt the boot and go into single user mode you can remove the 'needs_package_sync' file from /conf. If you're running ZFS that's a bit involved but possible.https://docs.netgate.com/pfsense/en/latest/troubleshooting/single-user-mode.html#single-user-mode-zfs
You could probably also comment out the check in rc.bootup but that's likely more error prone.
Steve