Public bug reported:
Binary package hint: lvm-common
Hey, I updated to edgy recently and there is a minor problem with the
initramfs cryptroot and lvm scripts. First my setup... I have a luks
encrypted partition on sda4, and inside that partition I have lvm, with
lvm partitions for dapper root, edgy root, home, and some others.
/dev/sda4 ->
[cryptsetup luksOpen] /dev/mapper/cryptroot ->
[vgchange -ay] /dev/mapper/zeus-edgyroot
The problem is with both lvm and cryptsetup installed, the local-top/lvm
script goes into an infinite loop. In my setup, the local-top/lvm
script can be completly skipped, since the required lvm vgchange
commands are carried out in local-top/cryptroot.
So what I did is add the following code into local-top/lvm directly
before the loop.
# check that the device is actually a lvm device
if ! pvscan | grep 'VG ${vg}' > /dev/null 2>&1; then
exit 0
fi
slumber=360
while [ ${slumber} -gt 0 -a ! -d "/dev/${vg}" ]; do
pvscan > /dev/null 2>&1
vgchange -ay ${vg} > /dev/null 2>&1
/bin/sleep 0.5
slumber=$(( ${slumber} - 1 ))
done
vgchange -ay ${vg}
This works prefectly for me, since it just exits out there and continues
to the cryptroot script.
** Affects: lvm-common (Ubuntu)
Importance: Undecided
Status: Unconfirmed
--
lvm on cryptsetup with initramfs infinite loop
https://launchpad.net/bugs/69217
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs