Poldis Blog - meine Welt

Alles und noch viel mehr!

 

Deutlich elegantere Lösung des crypto Problems unter Feisty

Zu finden unter https://launchpad.net/ubuntu/+.....omments/29

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

Popularity: 21% [?]

Filed under : Freizeit, Linux, Technik
By Poldi
On Wednesday, March 28th, 2007
At 6:41
Comments :
 

1 Comment for this post

 
Poldi Says: Gravatar

Trotz diverser Meldungen das das Problem in der Feisty final behoben wurde war die oben genannte Änderung bei mir nötig da der Fehler immernoch auftrat.
Soweit ich das verstanden habe wurde ein “/sbin/udevsettle –timeout=30″ eingebaut. Das hat zumindest auf meinen Rechnern nicht geholfen!

 

Leave a Reply