Machine can not boot with lvm.conf containing 'command_names = 1' or 'prefix="something"'
Issue
The LVM command_names & prefix configuration parameter are changing the normal lvm command outputs.
However, mkinitrd and iniscripts are known to use LVM command and parse output. Therefore, the 2 parameter shown above will wrongly parse output.
At best, the consequences are warning, at worst, the system wont boot.
In particular, with mkinitrd-5.1.19.6-61.el5_5.1, the machine will not even boot.
The error is as follow :
Parse error at byte 13 (line 1) : unexpected token
Failed to load config file /etc/lvm/lvm.conf
Internal error: _vginfos list should be empty
Environment
- Red Hat Enterprise Linux (RHEL) 5, or RHEL 7
- LVM2
- Root file system belongs to a VG
- mkdinitrd < 5.1.19.6-75.el5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.