Skip to content

v0.2.3

Choose a tag to compare

@github-actions github-actions released this 23 Jul 03:08
· 62 commits to main since this release

shorewall-nft 0.2.3

A fix release for issue #10: upgrading the legacy shorewall rpm no longer
loses /etc/shorewall.

Because shorewall-nft obsoletes the old shorewall package, which owned the
config as %config(noreplace), rpm deleted the unmodified files and renamed the
modified ones to .rpmsave when it erased that package during the swap.
shorewall-nft does not own that configuration (it is the administrator's), so
nothing protected it.

The config is now snapshotted in %pretrans and restored in %posttrans,
without taking ownership. Deleted files are put back and the .rpmsave renames
undone, so the administrator's /etc/shorewall and /etc/shorewall6 survive the
upgrade intact. Fresh installs and shorewall-nft self-upgrades are no-ops.

The .deb was never affected: dpkg keeps conffiles on package removal.

The exact rpm mechanics are now covered by a test that builds a stand-in
shorewall-5.2.8, upgrades to shorewall-nft in a Fedora container, and checks
the config survives.

Full Changelog: v0.2.2...v0.2.3