summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-08-25 11:02:49 +0000
committerintrigeri <intrigeri@boum.org>2016-08-25 11:02:49 +0000
commit1d2a12d28630838ba8295f8adc9a5d71f72e532a (patch)
tree98a75be8db32382a792dd471b2401488445f48ba
parentb32f229c096aa582a0190dd95aa5275c14c2637f (diff)
Explicitly select pinentry-gtk2 as our preferred pinentry program.
On Stretch, gnome-keyring depends on pinentry-gnome3, and then that one is selected by default. It does not feel worth it to introduce a hackish solution such as a fake pinentry-gnome3 package, so let's ignore it and just make sure we are using the pinentry program we prefer (pinentry-gtk2). Closes: #11713
-rwxr-xr-xconfig/chroot_local-hooks/40-pinentry9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/40-pinentry b/config/chroot_local-hooks/40-pinentry
new file mode 100755
index 0000000..373213e
--- /dev/null
+++ b/config/chroot_local-hooks/40-pinentry
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -eu
+
+echo "Selecting our preferred pinentry"
+
+for alternative in pinentry pinentry-x11 ; do
+ update-alternatives --set "$alternative" /usr/bin/pinentry-gtk-2
+done