Skip to content

Lack of NetworkManager breaks conversion #7

Description

@ispcolohost

Describe the bug
If NetworkManager is not present and enabled, the conversion fails because Alma 9 requires NetworkManager.
If the system in question uses legacy ifcfg-eth0:## style alias interface files, their presence causes a conversion failure.
If there are .bak versions of legacy interface file names, their presence causes a conversion failure; e.g. ifcfg-eth0.bak

To correct this, you must:

  1. Eliminate backup files, which may not have consistent naming, but .bak and .old are of course common human-chosen extensions, and .rpmsave and .rpmnew are common package manager replacement names; e.g.
rm -f /etc/sysconfig/network-scripts/ifcfg-e*.bak
rm -f /etc/sysconfig/network-scripts/ifcfg-e*.old
rm -f /etc/sysconfig/network-scripts/ifcfg-e*.rpmsave
rm -f /etc/sysconfig/network-scripts/ifcfg-e*.rpmnew
  1. Enable NetworkManager systemctl enable NetworkManager
  2. If NM_CONTROLLED=no had been added to any of the interface files, that must be removed; e.g.
    sed -i '/^[[:space:]]*NM_CONTROLLED[[:space:]]*=/d' /etc/sysconfig/network-scripts/ifcfg-e*
  3. The ip addresses present in alias files, typically in the format
DEVICE=eth0:1
IPADDR=192.0.2.2
PREFIX=24

must be extracted and converted into numbered IPADDR and PREFIX lines in the primary ifcfg- file. For example, if the above was present, the ifcfg-eth0 file would need to now have:

IPADDR1=192.0.2.1
PREFIX1=24

These must be tracked and incremented with each addition, which could be hundreds of new lines, and then the prior alias files removed or moved elsewhere so NetworkManager does not fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions