initramfs-tools lvm2-hookscript won't include lvm.conf and claim devices it shouldn't

Bug #246326 reported by Dennis W.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: initramfs-tools

The default initramfs-tools hookscript for lvm does not include /etc/lvm/lvm.conf. If you need to exclude some devices through lvm.conf filters, like if you are using lvm on top of drbd, the base devices get claimed while executing the initrd and drbd etc. will fail.

Fix:
Include these lines in /usr/share/initramfs-tools/hooks/lvm2:

mkdir -p ${DESTDIR}/etc/lvm
cp -p /etc/lvm/lvm.conf ${DESTDIR}/etc/lvm/lvm.conf

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.