summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-06 12:31:45 +0200
committerChristian Poessinger <christian@poessinger.com>2021-09-06 12:31:45 +0200
commit0c5edf1ced2872c495b190977db575deaf28fa1c (patch)
treeb09d1883aea024e363ba00a0cbf6d8cde1d4c74c
parentc36db1614b60fc180d016fd3b7f64d9342a503a6 (diff)
downloadvyatta-cfg-system-0c5edf1ced2872c495b190977db575deaf28fa1c.tar.gz
vyatta-cfg-system-0c5edf1ced2872c495b190977db575deaf28fa1c.zip
install-image: T2108: use minisign backup key if primary key fails
-rwxr-xr-xscripts/install/install-image4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/install/install-image b/scripts/install/install-image
index 439c6ca4..146a6560 100755
--- a/scripts/install/install-image
+++ b/scripts/install/install-image
@@ -174,6 +174,10 @@ fetch_iso_by_url ()
echo "Found it. Checking digital signature..."
minisign -V -q -p /usr/share/vyos/keys/vyos-release.minisign.pub -m ${filename} -x ${filename}.minisig
if [ $? -ne 0 ]; then
+ echo "Signature check FAILED, trying BACKUP key..."
+ minisign -V -q -p /usr/share/vyos/keys/vyos-backup.minisign.pub -m ${filename} -x ${filename}.minisig
+ fi
+ if [ $? -ne 0 ]; then
echo "Signature check FAILED."
echo -n "Do you want to continue anyway? (yes/no) [no] "
response=$(get_response "No" "Yes No Y N")