Project

General

Profile

Actions

Todo #12235

closed
RB RB

``pfSense-upgrade`` should reinstall all packages on new version upgrades

Todo #12235: ``pfSense-upgrade`` should reinstall all packages on new version upgrades

Added by Renato Botelho about 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Category:
Upgrade
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
22.01
Release Notes:
Default

Description

Today pfSense rely only on pkg to detect what must or not be upgraded. Sometimes a package is rebuilt using the same version when a new pfSense version comes and it's not reinstalled during release upgrade and ended up being different from what is present on a fresh install.

In order to improve this situation and make sure all packages are the same if we upgrade or do a fresh install, implement a mechanism that forces all packages reinstallation when the value of /etc/version changes.

This way full reinstall will never happen while using a -DEVELOPMENT snapshot but will for sure happen when it moves to -ALPHA, -BETA, -RC or -RELEASE. Also will happen when upgrading from X.Y-RELEASE to W.Z-RELEASE.

RB Updated by Renato Botelho about 5 years ago Actions #1

  • Status changed from New to Feedback

Implemented on pfSense-upgrade 1.0_2

JP Updated by Jim Pingle about 5 years ago Actions #2

  • Subject changed from pfSense-upgrade: Reinstall all packages on new version upgrades to ``pfSense-upgrade`` should reinstall all packages on new version upgrades

Updating subject for release notes.

RB Updated by Renato Botelho about 5 years ago Actions #3

  • Status changed from Feedback to In Progress

I found a bug on current implementation because control file is installed by pfSense-upgrade and it is not rebuilt when we change version

RB Updated by Renato Botelho about 5 years ago Actions #4

  • Status changed from In Progress to Feedback

Fixed moving control file to be installed by pfSense-repo package

RB Updated by Renato Botelho almost 5 years ago Actions #5

  • Status changed from Feedback to In Progress

There were some reports of crash logs showing up after upgrade and also PHP complaining about libpfctl missing during upgrade. Those errors were caused by this change and I'm finishing test a fix

RB Updated by Renato Botelho almost 5 years ago Actions #6

  • Status changed from In Progress to Feedback

Fixed by pfSense-upgrade 1.0_6

RB Updated by Renato Botelho almost 5 years ago Actions #7

  • Status changed from Feedback to Resolved

Fixed now

JP Updated by Jim Pingle almost 5 years ago Actions #8

  • Plus Target Version changed from 21.09 to 22.01
Actions

Also available in: Atom