HA LVM resource script does shell expansion

Solution Verified - Updated -

Issue

In /usr/share/cluster/lvm.sh line 81 when checking for if initrd has been updated the following line is used:

(if [ "$(find /boot -name *.img -newer /etc/lvm/lvm.conf)" == "" ];)

If the current directory contains any files ending with img, the asterisk will be expanded according to path names, which will cause the find to fail due to syntax error.

Environment

  • Red Hat Enterprise Linux 5
  • rgmanager prior to rgmanager-2.0.52-54

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