diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh index 97be76f..c425816 100755 --- a/dracut-module-setup.sh +++ b/dracut-module-setup.sh @@ -326,7 +326,7 @@ kdump_setup_ifname() { # fadump to kdump. Skip prefixing 'kdump-' in this case as adding # another prefix may truncate the ifname. Since an ifname with # 'kdump-' is already persistent, this should be fine. - if [[ $1 =~ eth* ]] && [[ ! $1 =~ ^kdump-* ]]; then + if [[ $1 =~ ^eth.* ]] && [[ ! $1 =~ ^kdump-* ]]; then _ifname="kdump-$1" else _ifname="$1"