gpg unusable from within an initrd

Christoph Anton Mitterer christoph.anton.mitterer at physik.uni-muenchen.de
Mon Jun 23 13:33:09 CEST 2008


On Mon, 2008-06-23 at 17:45 +0700, Vlad "SATtva" Miller wrote:
> 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

That's what I do right now (ok I use ln -s instead of cp ;) ) but I
considered this only as a workaround... as this could lead to problems
(when someone tries to access (the real) /dev/tty in the meantime or
so).

Thanks,
Chris.




More information about the Gnupg-users mailing list