Add `GPG_TTY` solution to FAQ (#33)

This commit is contained in:
Tim Byrne 2017-01-20 17:30:49 -06:00
parent 44207f64b3
commit 4473f921ea
No known key found for this signature in database
GPG Key ID: 6CBE24C2FD8CF76E
1 changed files with 12 additions and 0 deletions

View File

@ -130,6 +130,18 @@ If you changed files which are matched by `.yadm/encrypt`, you must re-run `yadm
encrypt` to generate a new version of `.yadm/files.gpg`. Then `.yadm/files.gpg`
can be added to a new commit.
### Why do I get the error `Inappropriate ioctl for device` when encrypting.
If you get the error
`command get_passphrase failed: Inappropriate ioctl for device`
when running `yadm encrypt`, **gpg** is having trouble identifying the tty to
use. The environment variable `GPG_TTY` can be used to help **gpg** out. Export
this variable to your shell in your login scripts.
```
export GPG_TTY=$(tty)
```
### Can I use **yadm** and **git-crypt**?
There is an experimental version of **yadm** which can use **git-crypt**. You