gpg unusable from within an initrd

Christoph Anton Mitterer christoph.anton.mitterer at
Sat Jun 21 21:46:34 CEST 2008


I have to use gpg from within an initrd.
/dev/tty is not available (an won't be) only /dev/console is here.

But whatever I do gpg complains:

Without --no-tty it complains that /dev/tty isn't there (gpg: cannot
open '/dev/tty': No such device or address)

With it, in complains "gpg: Sorry, no terminal at all requested - can't
get input"

It doesn't even work to redirect /dev/console to gpg e.g. 
gpg --quiet --no-greeting --no-default-keyring --keyring /dev/null
--secret-keyring /dev/null --no-options --no-random-seed-file
--no-use-agent --decrypt file    < /dev/console > /dev/console 2>&1

(no matter whether with or without --no-tty)

When using /dev/console as --passphrase-file this broke my whole system
and the keyboard ... I hat to kill it... :-L

Any ideas?


More information about the Gnupg-users mailing list