Skip to content

Commit

Permalink
manifest: default to iptables-nft
Browse files Browse the repository at this point in the history
Ship with iptables-nft by default. This requires a postprocessing script
until we can fully drop iptables-legacy from the base.

For more information, see:
coreos/fedora-coreos-tracker#676
coreos#1324
  • Loading branch information
jlebon committed Feb 1, 2022
1 parent 8d73e19 commit ead13ec
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,15 @@ postprocess:
#!/usr/bin/env bash
mkdir -p /usr/lib/rpm-ostree/
mv /usr/bin/microdnf /usr/lib/rpm-ostree/
# Default to iptables-nft. Otherwise, legacy wins. This needs to be lowered in
# a shared manifest once we're ready to migrate `testing`. We can drop this
# once/if we remove iptables-legacy.
- |
#!/usr/bin/env bash
set -xeuo pipefail
ln -sf /usr/sbin/ip6tables-nft /etc/alternatives/ip6tables
ln -sf /usr/sbin/ip6tables-nft-restore /etc/alternatives/ip6tables-restore
ln -sf /usr/sbin/ip6tables-nft-save /etc/alternatives/ip6tables-save
ln -sf /usr/sbin/iptables-nft /etc/alternatives/iptables
ln -sf /usr/sbin/iptables-nft-restore /etc/alternatives/iptables-restore
ln -sf /usr/sbin/iptables-nft-save /etc/alternatives/iptables-save

0 comments on commit ead13ec

Please sign in to comment.