-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically download the iso signing key
Do the key lookup with WKD and store the key in a private keyring. Fixes: #69
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -346,6 +358,7 @@ done | |
shift $((OPTIND-1)) | ||
|
||
check_root | ||
init_gnupg | ||
test -d "$BUILDDIRECTORY"/root || get_bootstrap_img | ||
init_chroot | ||
cmd_check "$@" |