From 14a0c25cc7efa9c6dfa8e787a26b4adf98fe8223 Mon Sep 17 00:00:00 2001 From: HuijingHei Date: Thu, 24 Oct 2024 15:09:54 +0800 Subject: [PATCH] alternatives: update doc to use the usual `alternatives` commands See https://github.com/coreos/fedora-coreos-tracker/issues/677#issuecomment-2429223322 --- modules/ROOT/pages/alternatives.adoc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/modules/ROOT/pages/alternatives.adoc b/modules/ROOT/pages/alternatives.adoc index d281be92..ffe52ad1 100644 --- a/modules/ROOT/pages/alternatives.adoc +++ b/modules/ROOT/pages/alternatives.adoc @@ -35,3 +35,24 @@ storage: overwrite: true hard: false ---- + +== Manual setup + +Starting with Fedora CoreOS based on Fedora 41, you can use `alternatives` commands to configure the default command manually. + +For example, to use the legacy-based variants of the `iptables` commands: + +.Example using alternatives to configure default command manually +[source,bash] +---- +# Check the link info +alternatives --display iptables +iptables --version + +# Config iptables to point to legacy +sudo alternatives --set iptables /usr/sbin/iptables-legacy + +# Verify iptables version is legacy +alternatives --display iptables +iptables --version +---- \ No newline at end of file