summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-11-05 22:10:30 +0100
committerGitHub <noreply@github.com>2026-11-05 22:10:30 +0100
commitc4593f563d01bbc5139d07cafa2b7e8527d02a53 (patch)
treedc36e73f2aab018548e768ed53c4b97461965532 /docs
parent3fb1e8e7eec6d6a4ce595008215b8716040aeb14 (diff)
parent0b3df188892ff6bd4624015b5eda000763423e8b (diff)
downloadvyos-documentation-c4593f563d01bbc5139d07cafa2b7e8527d02a53.tar.gz
vyos-documentation-c4593f563d01bbc5139d07cafa2b7e8527d02a53.zip
Merge pull request #2380 from vyos/mergify/bp/circinus/pr-2361
secure-boot: T9496: document Secure Boot signature check on "add system image" (backport #2361)
Diffstat (limited to 'docs')
-rw-r--r--docs/installation/secure-boot.md22
-rw-r--r--docs/installation/update.md7
2 files changed, 29 insertions, 0 deletions
diff --git a/docs/installation/secure-boot.md b/docs/installation/secure-boot.md
index 63814c19..dd5798bb 100644
--- a/docs/installation/secure-boot.md
+++ b/docs/installation/secure-boot.md
@@ -157,6 +157,28 @@ error: bad shim signature
error: you need to load the kernel first
```
+To prevent this, {opcmd}`add system image` verifies the Linux Kernel of the
+new image when the running system has Secure Boot enabled. The Kernel must be
+signed by one of the {abbr}`MOK (Machine Owner Key)` keys enrolled in UEFI.
+If it is not, the installation is aborted before any files are copied:
+
+% stop_vyoslinter
+
+```none
+vyos@vyos:~$ add system image /tmp/vyos-unsigned-amd64.iso
+Validating image compatibility
+Validating image checksums
+Validating Secure Boot signature
+Secure Boot is enabled, but the Linux Kernel "vmlinuz" of the new image is not signed by an enrolled key. The new image would not boot.
+Exiting from VyOS installation
+```
+
+% start_vyoslinter
+
+Enroll the key the new image is signed with before you add the image. On
+systems with Secure Boot disabled, or booted in legacy BIOS mode, the check is
+skipped.
+
## Linux Kernel
diff --git a/docs/installation/update.md b/docs/installation/update.md
index e8b5f912..08563352 100644
--- a/docs/installation/update.md
+++ b/docs/installation/update.md
@@ -30,6 +30,13 @@ For example: /tmp/vyos-1.2.3-amd64.iso.
If there isn't enough free disk space, the installation will be canceled.
To delete images, use the {opcmd}`delete system image` command.
+:::{note}
+If the running system has UEFI Secure Boot enabled, the Linux Kernel of the
+new image must be signed by an enrolled Machine Owner Key. Otherwise the
+installation is canceled, because the new image would not boot. See
+{ref}`secure-boot` for details.
+:::
+
VyOS associates configuration with each image, and each image has its own
unique configuration copy. This differs from traditional network routers where