Revert commit 78e985e51cf1 ("kdump/fadump: fix network interface name when switching from fadump to kdump") as it is no longer relevant in the context of the recent change that ensures network interface name on production kernel is not altered.
Signed-off-by: Hari Bathini hbathini@linux.ibm.com ---
Changes in V2: * Reverted commit 78e985e51cf1
dracut-module-setup.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh index c2e92da..5574773 100755 --- a/dracut-module-setup.sh +++ b/dracut-module-setup.sh @@ -216,11 +216,7 @@ kdump_get_perm_addr() { kdump_setup_ifname() { local _ifname
- # If ifname already has 'kdump-' prefix, we must be switching from - # 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* ]]; then _ifname="kdump-$1" else _ifname="$1"