[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

gpg unusable from within an initrd



Hi.

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?

Chris.

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Reply to: