summaryrefslogtreecommitdiff
path: root/data/live-build-config/hooks/live/82-import-vyos-gpg-signing-key.chroot
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-10-16 18:51:50 +0200
committerChristian Poessinger <christian@poessinger.com>2021-10-16 18:55:40 +0200
commit16ed3787c14eb7bca3b3065431b4c9a146fe6458 (patch)
treee7b1ad0a26b9f27324d60b98559cca1a084ee019 /data/live-build-config/hooks/live/82-import-vyos-gpg-signing-key.chroot
parentbe4b6d34907764568c7f0d40c3bd350d11e84331 (diff)
downloadvyos-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-xdata/live-build-config/hooks/live/82-import-vyos-gpg-signing-key.chroot12
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 $?