diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh index a49d688..d01c5d9 100755 --- a/dracut-module-setup.sh +++ b/dracut-module-setup.sh @@ -395,6 +395,7 @@ kdump_install_nic_driver() { _drivers=() for _netif in $1; do + [[ $_netif == lo ]] && continue _driver=$(_get_nic_driver "$_netif") if [[ -z $_driver ]]; then derror "Failed to get the driver of $_netif" @@ -417,6 +418,7 @@ kdump_install_nic_driver() { _drivers+=("$_driver") done + [[ -n ${_drivers[*]} ]] || return instmods "${_drivers[@]}" }