gpg unusable from within an initrd

Vlad "SATtva" Miller sattva at pgpru.com
Mon Jun 23 12:45:27 CEST 2008


Werner Koch (23.06.2008 16:59):
> On Sat, 21 Jun 2008 21:46,
> christoph.anton.mitterer at physik.uni-muenchen.de said:
> 
>> With it, in complains "gpg: Sorry, no terminal at all requested - can't
>> get input"
> 
> Add option "--batch".

Or, if interactive mode is desired, place this in your initrd script:

mv /dev/tty /dev/tty.bak
cp -a /dev/console /dev/tty

#
# do gpg stuff here
#

rm /dev/tty
mv /dev/tty.bak /dev/tty

-- 
SATtva | security & privacy consulting
www.vladmiller.info | www.pgpru.com


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 513 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20080623/343c3b9e/attachment-0001.pgp>


More information about the Gnupg-users mailing list