summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorarshlinux2018-01-14 01:33:23 +0100
committerarshlinux2018-01-14 01:34:58 +0100
commitffed95e407777255cc37ae93d38db0e42e270cda (patch)
tree9a5e993f97637e4337ddd14380ae2abf779921ed
parent3f444781abce510b0f7f71b9ec515219f031011e (diff)
downloadaur-ffed95e407777255cc37ae93d38db0e42e270cda.tar.gz
Add GPG_TTY=/dev/console so it works again
-rw-r--r--hook2
1 files changed, 2 insertions, 0 deletions
diff --git a/hook b/hook
index 95efa5f3f9a0..2d39c27aeec6 100644
--- a/hook
+++ b/hook
@@ -3,6 +3,8 @@
run_hook() {
rootkey=$(mktemp)
chmod 0000 "$rootkey"
+
+ export GPG_TTY=/dev/console
gpg --decrypt -o "$rootkey" --yes /rootkey.gpg
# send the now decrypted key location to cryptsetup's encrypt hook