Skip to content

Commit

Permalink
alternatives: New page with alternatives workaround
Browse files Browse the repository at this point in the history
Workaround for [1] while we wait for [2] to get fixed.

[1] coreos/fedora-coreos-tracker#676
[2] fedora-sysv/chkconfig#9
  • Loading branch information
travier authored and dustymabe committed Dec 1, 2020
1 parent afe3184 commit a64d5bd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
*** xref:customize-nic.adoc[How to Customize a NIC Name]
*** xref:sysconfig-configure-swaponzram.adoc[Configuring SwapOnZRAM]
*** xref:kernel-args.adoc[Modifying Kernel Arguments]
*** xref:alternatives.adoc[Setting alternatives]
** OS updates
*** xref:update-streams.adoc[Update Streams]
*** xref:auto-updates.adoc[Auto-Updates]
Expand Down
37 changes: 37 additions & 0 deletions modules/ROOT/pages/alternatives.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
= Setting alternatives

Due to an https://github.com/fedora-sysv/chkconfig/issues/9[ongoing issue] in how alternatives configurations are stored on the system, Fedora CoreOS systems can not use the usual `alternatives` commands to configure them.

Instead, until this issue is resolved, you can set the symlinks directly in `/etc/alternatives`. For example, to use the nftables based variants of `iptables` commands:

[source,yaml]
----
variant: fcos
version: 1.2.0
storage:
links:
- path: /etc/alternatives/iptables
target: /usr/sbin/iptables-nft
overwrite: true
hard: false
- path: /etc/alternatives/iptables-restore
target: /usr/sbin/iptables-nft-restore
overwrite: true
hard: false
- path: /etc/alternatives/iptables-save
target: /usr/sbin/iptables-nft-save
overwrite: true
hard: false
- path: /etc/alternatives/ip6tables
target: /usr/sbin/ip6tables-nft
overwrite: true
hard: false
- path: /etc/alternatives/ip6tables-restore
target: /usr/sbin/ip6tables-nft-restore
overwrite: true
hard: false
- path: /etc/alternatives/ip6tables-save
target: /usr/sbin/ip6tables-nft-save
overwrite: true
hard: false
----

0 comments on commit a64d5bd

Please sign in to comment.