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
Site Admin
Posts: 33220
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?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
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
Site Admin
Posts: 33220
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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4531
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