This works a little better, It will check every 1/2 a second for the
device, then as soon as it shows up it continues. Should speed things up
from the above fix a bit.
Other then this fix cryptsetup-1.0.4+svn26-1ubuntu1 Works for me using
lvm on top of a single Luks partition.
/usr/share/initramfs-tools/scripts/local-top/cryptroot
---snip---
# Make sure the cryptsource device is available
if [ ! -e $cryptsource ]; then
activate_vg $cryptsource
activate_evms $cryptsource
fi
+ # Check that the cryptsource is there, give it a min to show up
+ count=0
+ while [ $count -lt 360 ]; do
+ count=$(( $count + 1 ))
+ if [ -e $cryptsource ] ; then
+ break
+ fi
+ sleep .5
+ done
if [ ! -e $cryptsource ]; then
echo "cryptsetup: Source device $cryptsource not found"
return 1
fi
# Prepare commands
if /sbin/cryptsetup isLuks $cryptsource > /dev/null 2>&1; then
--
Support for encrypted root filesystem (cryptsetup)
https://launchpad.net/bugs/21878
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs