Skip to content

A8 to A9 Elevate issue

Symptom

ELEVATE aborts AlmaLinux 8 → 9 with: "RHEL 9 does not support the legacy network-scripts package... Custom network-scripts have been detected."

Cause

RHEL 9 removed the network-scripts package. Custom hooks (ifup-local, ifdown-local, ifup-pre-local, ifdown-pre-local) are no longer executed.

Resolution

  1. Identify custom scripts:
       ls -la /etc/sysconfig/network-scripts/{ifup,ifdown}-{local,pre-local} 2>/dev/null
    
  2. Move them out of the way:
       mkdir -p /opt/network-scripts/
       mv /sbin/if*-local /opt/network-scripts/ 2>/dev/null
    
  3. Create /etc/NetworkManager/dispatcher.d/20-if-local:
       #!/bin/bash
       test -n "$DEVICE_IFACE" || exit 0
       run() { test -x "$1" || exit 0; "$1" "$DEVICE_IFACE"; }
       case "$2" in
           "up")       run /opt/network-scripts/ifup-local ;;
           "pre-up")   run /opt/network-scripts/ifup-pre-local ;;
           "down")     run /opt/network-scripts/ifdown-local ;;
           "pre-down") run /opt/network-scripts/ifdown-pre-local ;;
       esac
    
  4. Set permissions and symlinks: ```bash chown root:root /etc/NetworkManager/dispatcher.d/20-if-local chmod +x /etc/NetworkManager/dispatcher.d/20-if-local restorecon /etc/NetworkManager/dispatcher.d/20-if-local mkdir -p /etc/NetworkManager/dispatcher.d/{pre-up.d,pre-down.d} ln -s ../20-if-local /etc/NetworkManager/dispatcher.d/pre-up.d/ ln -s ../20-if-local /etc/NetworkManager/dispatcher.d/pre-dow