Bug 1134400 - [RFE] Create dracut/initramfs LVM configuration profile
Summary: [RFE] Create dracut/initramfs LVM configuration profile
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: lvm2
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Peter Rajnoha
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-27 13:00 UTC by Peter Rajnoha
Modified: 2023-08-02 02:20 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Peter Rajnoha 2014-08-27 13:00:22 UTC
Dracut currently modifies lvm.conf settings on the fly when generating initramfs image so it's suitable for that environment (e.g. locking_type, use_lvmetad and other settings like hosttags and volume_list).

We already have configuration profile functionality in recent versions of LVM2 hence it would be better to use this method of overriding lvm configuration instead. In that case, dracut would call all lvm commmands using this profile like:

  <lvm command> --commandprofile dracut ...

This will automatically override any existing lvm.conf settings. An advantage of such solution would be that the dracut.profile would be managed directly by LVM and it will always be set up in in a way which is suitable for dracut initramfs image to work correctly (e.g. adding any new lvm.conf setting could also be reflected in the profile as well and we don't need to bother about making lvm and dracut in sync with respect to settings - dracut would just copy recent /etc/lvm/profile/dracut.profile into the image on initramfs (re)generation).

Currently, the set of profilable settings is restricted and it needs to include all the settings that need to be changed for dracut (at least the ones mentioned at the beginning of this comment).

Comment 2 Peter Rajnoha 2015-10-14 07:39:13 UTC
This is just for making dracut's LVM handling easier so it doesn't need to bother about setting and overriding selected settings itself. Let's have this resolved in Fedora first as RFE, then let's clone for RHEL once it's available.


Note You need to log in before you can comment on or make changes to this bug.