Skip to content

Network contextualization sets depreacated NETWORKING variable on RHEL9 based OS #75

@mlturk

Description

@mlturk

On Alma Linux 9 contextualization sets variable NETWORKING=no in /etc/sysconfig/networking, use of ifcfg scripts is deprecated and setting this variable is not necessary. Moreover, in our use case, this variable misleads other software, that checks this (deprecated) variable to determine if system has networking configured.

I would suggest to change following line of code, which checks for existance of directory/etc/sysconfig/network-scripts/

if [ -d /etc/sysconfig/network-scripts/ ]; then

to use same method as in netcfg-scripts

if [ -x /etc/sysconfig/network-scripts/ifup ]; then

This directory still exists, because it contains file describing depreciation of scripts configuration method /etc/sysconfig/network-scripts/readme-ifcfg-rh.txt.

This change in the one-context.d/loc-10-network.d/functions would skip setting this variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions