diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-10-16 18:51:50 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-10-16 18:55:40 +0200 |
commit | 16ed3787c14eb7bca3b3065431b4c9a146fe6458 (patch) | |
tree | e7b1ad0a26b9f27324d60b98559cca1a084ee019 /data/live-build-config/hooks/live/82-import-vyos-gpg-signing-key.chroot | |
parent | be4b6d34907764568c7f0d40c3bd350d11e84331 (diff) | |
download | vyos-build-16ed3787c14eb7bca3b3065431b4c9a146fe6458.tar.gz vyos-build-16ed3787c14eb7bca3b3065431b4c9a146fe6458.zip |
T3879: bugfix GPG signature validation on image install
(cherry picked from commit f9c89e3565037b4f60aef2577f9fdaa70da7b751)
Diffstat (limited to 'data/live-build-config/hooks/live/82-import-vyos-gpg-signing-key.chroot')
-rwxr-xr-x | data/live-build-config/hooks/live/82-import-vyos-gpg-signing-key.chroot | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/data/live-build-config/hooks/live/82-import-vyos-gpg-signing-key.chroot b/data/live-build-config/hooks/live/82-import-vyos-gpg-signing-key.chroot new file mode 100755 index 00000000..478b88fb --- /dev/null +++ b/data/live-build-config/hooks/live/82-import-vyos-gpg-signing-key.chroot @@ -0,0 +1,12 @@ +#!/bin/sh + +if ! command -v gpg &> /dev/null; then + echo "gpg binary could not be found" + exit 1 +fi + +GPG_KEY="/usr/share/vyos/keys/vyos-release.pub.asc" + +echo I: Import GPG key +gpg --import ${GPG_KEY} +exit $? |