[dm-crypt] Fwd: Detect successful passphrase entry for dmcrypt +LUKS from initramfs busybox prompt

Michael Kjörling michael at kjorling.se
Sat Apr 22 14:26:12 CEST 2017

On 22 Apr 2017 12:38 +0100, from dominic at timedicer.co.uk (Dominic Raferd):
> ​Hi Michael, I'm not sure I understand your situation. In my case, if the
> script doesn't find that cryptroot has terminated i.e. the user entered the
> right passphrase (after 3 tries) it just ends and drops the user back to
> the busybox prompt - or if it has been run as a single line command from
> the remote machine, it would return to the remote machine. Either way the
> user can just repeat the action because the booting machine will sit and
> wait indefinitely for the root system to be unlocked - I think. With remote
> access and pushing the passphrase straight into /lib/cryptsetup/passfifo I
> don't think there is any fundamental limitation on the number of attempts
> that can be made.

Good point, I might have misread somewhere; I had the impression that
your script ran automatically during boot, not as a user-initiated

Michael Kjörling • https://michael.kjorling.semichael at kjorling.se
                 “People who think they know everything really annoy
                 those of us who know we don’t.” (Bjarne Stroustrup)

More information about the dm-crypt mailing list