Skip to content

Commit

Permalink
fix: ifcfg files are no longer mandatory in EL9
Browse files Browse the repository at this point in the history
  • Loading branch information
iranzo committed Nov 14, 2022
1 parent 90710dc commit 5431fdc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions risuclient/plugins/core/network/interface-onboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
# Load common functions
[[ -f "${RISU_BASE}/common-functions.sh" ]] && . "${RISU_BASE}/common-functions.sh"

RH_RELEASE=$(discover_rhrelease)

if [[ ${RH_RELEASE} -ge 9 ]]; then
echo "EL9 no longer uses ifcfg files for configuration" >&2
exit ${RC_SKIPPED}
fi

NETWORK_SCRIPTS_PATH="/etc/sysconfig/network-scripts/ifcfg"

if [[ ${RISU_LIVE} -eq "0" ]]; then
Expand Down

0 comments on commit 5431fdc

Please sign in to comment.