Rebuilding kdump crash kernel on RHV hosts fails with error /lib/kdump/kdump-lib.sh: eval: line 925: syntax error near unexpected token

Solution Verified - Updated -

Issue

  • After updating the kdump target path in the /etc/kdump.conf configuration file, restarting the kdump service triggers a rebuild of the crash kernel.
  • The crash kernel rebuild fails, displaying the following output.

    # kdumpctl restart 
    Restarting the kdump service...
    kdump: kexec: unloaded kdump kernel
    kdump: Stopping kdump: [OK]
    kdump: Detected change(s) in the following file(s):  /etc/kdump.conf
    kdump: Rebuilding /boot/rhvh-4.4.10.1-0.20220208.0+1/initramfs-4.18.0-348.12.2.el8_5.x86_64kdump.img
    /lib/kdump/kdump-lib.sh: eval: line 925: syntax error near unexpected token `;'
    /lib/kdump/kdump-lib.sh: eval: line 925: `; echo $TYPE'
    /lib/kdump/kdump-lib.sh: eval: line 925: syntax error near unexpected token `;'
    /lib/kdump/kdump-lib.sh: eval: line 925: `; echo $TYPE'
    /lib/kdump/kdump-lib.sh: eval: line 925: syntax error near unexpected token `;'
    /lib/kdump/kdump-lib.sh: eval: line 925: `; echo $TYPE'
    /usr/lib/dracut/modules.d/04watchdog/module-setup.sh: line 10: return: watchdog-modules: numeric argument required
    kdump: kexec: loaded kdump kernel
    kdump: Starting kdump: [OK]
    

Environment

  • Red Hat Virtualization (RHV) 4.4
  • Red Hat Hyperconverged Infrastructure for Virtualization 1.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content