dracut and lvmconf="no"

General support questions
Post Reply
nardusg
Posts: 8
Joined: 2019/08/13 09:41:09

dracut and lvmconf="no"

Post by nardusg » 2019/09/17 08:53:02

Hi People

Hope you are all well. Maybe someone can explain this to me. OS is Centos 7.6.1810

If I specifies lvmconf="no" in /etc/dracut.conf and rebuild using dracut -f, I should not see /etc/lvm/lvm.conf when I do lsinitrd on the new generated initramfs?

At the moment it is as if lvmconf="no" is being ignored ?

Regards

Nar

User avatar
TrevorH
Forum Moderator
Posts: 26515
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: dracut and lvmconf="no"

Post by TrevorH » 2019/09/17 14:49:12

Does your running system have LVM managed devices?
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

nardusg
Posts: 8
Joined: 2019/08/13 09:41:09

Re: dracut and lvmconf="no"

Post by nardusg » 2019/09/18 10:44:05

Yes, we use LVM

User avatar
TrevorH
Forum Moderator
Posts: 26515
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: dracut and lvmconf="no"

Post by TrevorH » 2019/09/18 17:31:53

Then I suspect that overrides your attempt to exclude the lvm.conf file. The only way to test that theory is by running it on a machine without LVM devices and I don't have any of those.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

User avatar
jlehtone
Posts: 2293
Joined: 2007/12/11 08:17:33
Location: Finland

Re: dracut and lvmconf="no"

Post by jlehtone » 2019/09/18 18:05:07

A VM with no LVM volumes does not have anything "lvm" in the image and I have never touched dracut.conf.
Should add PV/VG/LV and rerun dracut as test. Can't.

Post Reply

Return to “CentOS 7 - General Support”