]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
stub: add comment on measurement of io.systemd.stub.kernel-cmdline-extra
authorLuca Boccassi <bluca@debian.org>
Sun, 23 Apr 2023 17:33:24 +0000 (18:33 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 24 Apr 2023 10:04:50 +0000 (11:04 +0100)
src/boot/efi/stub.c

index 6339d82ddc8235ec1db184f01c04a16aaef2a263..eb4bd77ac3ca9dc9153ccd1ac6aaf6ea92e03d79 100644 (file)
@@ -277,6 +277,7 @@ static EFI_STATUS run(EFI_HANDLE image) {
                 mangle_stub_cmdline(cmdline);
         }
 
+        /* SMBIOS strings are measured in PCR1, so we do not re-measure these command line extensions. */
         const char *extra = smbios_find_oem_string("io.systemd.stub.kernel-cmdline-extra");
         if (extra) {
                 _cleanup_free_ char16_t *tmp = TAKE_PTR(cmdline), *extra16 = xstr8_to_16(extra);