Skip to content

Commit cfc30fa

Browse files
authored
Merge pull request #73 from progandy/private-keyring
Automatically download the iso signing key
2 parents 2e878c4 + 3e318e6 commit cfc30fa

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 [email protected]
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
@@ -347,6 +359,7 @@ done
347359
shift $((OPTIND-1))
348360

349361
check_root
362+
init_gnupg
350363
test -d "$BUILDDIRECTORY"/root || get_bootstrap_img
351364
init_chroot
352365
cmd_check "$@"

0 commit comments

Comments
 (0)