[Pkg-cryptsetup-devel] Bug#358452: Two more fixes needed to cryptroot scripts

David Härdeman david at 2gen.com
Mon Apr 10 23:33:48 UTC 2006


I've found two bugs with the latest versions of the scripts. Instead of 
attaching the full scripts again, I'll just list the fixes.

1) In the hook script, the lines that load the crypto modules into the 
initramfs should be changed from:

for x in $modules; do
	manual_add_modules ${x}
done

into:

for x in $modules; do
	force_load ${x}
done


2) In order to allow for passphrase entry, the following lines in the 
cryptsetup local-premount script should be changed from:

if [ -x "/sbin/cryptgetpw" ]; then
	/sbin/cryptgetpw | $cryptcreate
else
	$cryptcreate
fi

into:

if [ -x "/sbin/cryptgetpw" ]; then
	/sbin/cryptgetpw | $cryptcreate
else
	$cryptcreate < /dev/console
fi



Regards,
David





More information about the Pkg-cryptsetup-devel mailing list