1
0
Fork 0
mirror of synced 2024-12-22 14:41:07 -05:00

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

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