forked from coreos/fedora-coreos-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
manifests: add iptables-nft.yaml for f36+
Add a new conditional include which migrates streams on Fedora 36 and higher to iptables-nft. This is magnitudes simpler than the current alternative rollout procedure detailed in: coreos/fedora-coreos-tracker#676
- Loading branch information
Showing
3 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Scripts for opting into staying on iptables-legacy after migration. Remove | ||
# after the next barrier release. | ||
ostree-layers: | ||
- overlay/35coreos-iptables | ||
|
||
# Default to iptables-nft. Otherwise, legacy wins. We can drop this once/if we | ||
# remove iptables-legacy. | ||
postprocess: | ||
- | | ||
#!/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 |