[pkg-cryptsetup-devel] my stab at ask-once crypto
RossBoylan at stanfordalumni.org
Wed Mar 4 20:35:22 UTC 2009
On Sun, 2009-03-01 at 23:18 +0100, Jonas Meurer wrote:
> 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.
Thank you for the suggestion; I had not tried it.
I did; unfortunately it didn't work (:. Maybe echo doesn't produce an
More information about the pkg-cryptsetup-devel