Skip to content

Commit 3e318e6

Browse files
committed
Automatically download the iso signing key
Do the key lookup with WKD and store the key in a private keyring. Fixes: #69
1 parent 57540f3 commit 3e318e6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

repro.in

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ function check_root() {
2828
fi
2929
}
3030

31+
# Use a private gpg keyring
32+
function gpg() {
33+
command gpg --homedir="$BUILDDIRECTORY/gnupg" "$@"
34+
}
35+
36+
function init_gnupg() {
37+
[ ! -d "$BUILDDIRECTORY/gnupg" ] && mkdir -p "$BUILDDIRECTORY/gnupg"
38+
39+
# ensure signing key is available
40+
gpg --auto-key-locate nodefault,wkd --locate-keys pierre@archlinux.de
41+
}
42+
3143
# Desc: Sets the appropriate colors for output
3244
function colorize() {
3345
# prefer terminal safe colored and bold text when tput is supported
@@ -346,6 +358,7 @@ done
346358
shift $((OPTIND-1))
347359

348360
check_root
361+
init_gnupg
349362
test -d "$BUILDDIRECTORY"/root || get_bootstrap_img
350363
init_chroot
351364
cmd_check "$@"

0 commit comments

Comments
 (0)