How to revert pfsense to unpatched status?



  • After I updated a patch on github, pfsense refuses to accept it: reporting that it cannot apply or restore it.

    I want to bring back the pfsense to the unpatched status, so I can re-apply the new patch.

    I mention that I already have 2.4.2 and doing a reinstallation is out of question. Is any trick I can use to make it reset its status? Like manually reapplying the 2.4.2 upgrade?

    Please note that this patch was minor, as modifying only two PHP files.



  • @ssbarnea:

    I mention that I already have 2.4.2 and doing a reinstallation is out of question. Is any trick I can use to make it reset its status? Like manually reapplying the 2.4.2 upgrade?

    " reapplying the 2.4.2 upgrade" === reinstalling ….
    There is not such thing as "repair files" function because files are never modified by pfSense itself - except the build in upgrade function.

    @ssbarnea:

    Please note that this patch was minor, as modifying only two PHP files.

    The original "2.4.2" files can be found on github, so doing it by hand using the right text editor, like notepad++, or even the build in "vi" if you know your ways around with it.
    Or : also very simple : as you already have the original 2.4.2 iso.gz file, extract it, get your to files and overwrite the files on your pfSense installation with it.

    Btw, a patch-manager package exists for pfSense, and IF it can NOT apply the patch you put into it, you have nothing to 'restore" because it wasn't applied in the first place.
    Patching by hand : keep copies, or .. well ….  ;)


  • Banned

    ZFS snapshots are also usefull, if you do one before you screw up.


Log in to reply