[pkg-cryptsetup-devel] my stab at ask-once crypto

Jonas Meurer jonas at freesources.org
Sun Mar 1 22:18:00 UTC 2009


Hey,

On 28/02/2009 Ross Boylan wrote:
> I tried the tweaks below to get the system to try the previous password
> on later volumes before asking for another password.  Unfortunately, the
> password entered always failed.  In other words,
> 
> 	lastpass="$($KEYSCRIPT "$keyscriptarg")"
> 	if echo "$lastpass" | cryptsetup $PARAMS luksOpen "$src" "$dst"; then
> 
> is not the same as
> 	if "$KEYSCRIPT" "$keyscriptarg" | cryptsetup $PARAMS luksOpen \
> 		"$src" "$dst"; then
> 
> The first construct seems to capture the password I entered (as verified
> by echo to the terminal), but it's not quite right.  Any ideas?

did you try echo -n instead of echo? I didn't do any tests, but that's
what came into my mind when I read your mail.

greetings,
 jonas



More information about the pkg-cryptsetup-devel mailing list