Skip to content

Commit

Permalink
Automatically download the iso signing key
Browse files Browse the repository at this point in the history
Do the key lookup with WKD and store the key in a private keyring.
Fixes: #69
  • Loading branch information
progandy committed Apr 25, 2020
1 parent 57540f3 commit 3e318e6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions repro.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ function check_root() {
fi
}

# Use a private gpg keyring
function gpg() {
command gpg --homedir="$BUILDDIRECTORY/gnupg" "$@"
}

function init_gnupg() {
[ ! -d "$BUILDDIRECTORY/gnupg" ] && mkdir -p "$BUILDDIRECTORY/gnupg"

# ensure signing key is available
gpg --auto-key-locate nodefault,wkd --locate-keys [email protected]
}

# Desc: Sets the appropriate colors for output
function colorize() {
# prefer terminal safe colored and bold text when tput is supported
Expand Down Expand Up @@ -346,6 +358,7 @@ done
shift $((OPTIND-1))

check_root
init_gnupg
test -d "$BUILDDIRECTORY"/root || get_bootstrap_img
init_chroot
cmd_check "$@"

0 comments on commit 3e318e6

Please sign in to comment.