1
0
mirror of https://github.com/rancher/os-kernel.git synced 2025-07-05 09:46:13 +00:00

error when download keysign via ipv6

When you try to `make release` keys.gnupg.net may be resolved to an IPv6 address. Under some circumstances (e.g. an internet connection that does not support IPv6) the build sistematically fail with message:
"gpg: keyserver receive failed: Cannot assign requested address"
I created a fallback to an IPv4 version of keyserver.
This commit is contained in:
gianluca-mascolo 2018-05-06 20:23:51 +02:00 committed by GitHub
parent f2bc553686
commit 01f0ee1fae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,11 @@ curl -sL ${KERNEL_URL}${KERNEL_SIGN} > ${KERNEL_SIGN}
# grab gregkh's stable signing key
GPG_KEY="6092693E"
set +e
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys $GPG_KEY
[ $? -ne 0 ] && echo "gpg2 key sign download failed. trying second mirror"
set -e
gpg2 --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys $GPG_KEY
if ! xz -cd ${KERNEL_TAR} | gpg2 --verify ${KERNEL_SIGN} - ; then
echo "ERROR: ${KERNEL_TAR} signing error" 1>&2