currently cryptsetup is broken with openrc as it performs black magic to open stdin/stdout/stderr before executing gpg ... this magic appears to break we need a function or something that code can execute: rc_stdin_obtain <app does what it needs; in this case executes gpg for user password input> rc_stdin_release
Created attachment 147301 [details] test input This script reads user input. It works in the boot and default runlevels during a normal rc, a full system boot and a single run. Maybe cryptsetup is doing it's own voodoo on stdin? Caveat - I have console=tty1 on the kernel commandline which may affect this.
check out 1.0.6-dm-crypt-start.sh in the files/ dir of cryptsetup ... this was working with baselayout-2.x and baselayout-1.x, but the fds it has hard coded may have changed ...
It's forcing input from /dev/console, which could be the cause. I don't have the time right now to setup a test env to verify.
looks like default pinentry program is broken ... it doesnt fallback to curses properly