This configuration can be made to work, but there are some packages
which need changes for it to be out-of-the-box:
Changes to the lvm2 package:
- /etc/lvm/lvm.conf should have as a default preferred_names = [
"^/dev/mapper/" ]
- /usr/share/initramfs-tools/hooks/lvm2 should list dmraid as a prerequisite
(so PREREQ="udev dmraid"); depending on how dependencies are resolved, it may
make sense to be conditional as follows:
{{{
PREREQ="udev"
if [ -e /sbin/dmraid ] ; then
PREREQ="$PREREQ dmraid"
fi
}}}
- /usr/share/initramfs-tools/hooks/lvm2 should copy /etc/lvm/lvm.conf into the
target:
{{{
if [ -f /etc/lvm/lvm.conf ] ; then
mkdir -p ${DESTDIR}/etc/lvm/
cp /etc/lvm/lvm.conf ${DESTDIR}/etc/lvm/
fi
}}}
Changes to the dmraid package:
- /usr/share/initramfs-tools/scripts/local-top/dmraid should be moved to
/usr/share/initramfs-tools/scripts/init-premount/dmraid
--
dmraid and LVM are incompatible
https://bugs.launchpad.net/bugs/129285
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs