mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
measure: Add .ucode UKI section support
This commit adds support for the new ".ucode" UKI section to systemd-measure. It is functionally an initrd and is treated as such by measure.
This commit is contained in:
parent
aea81bc0ff
commit
590ac4bd27
@ -75,9 +75,9 @@
|
||||
<listitem><para>Pre-calculate the expected values seen in PCR register 11 after boot-up of a unified
|
||||
kernel image consisting of the components specified with <option>--linux=</option>,
|
||||
<option>--osrel=</option>, <option>--cmdline=</option>, <option>--initrd=</option>,
|
||||
<option>--splash=</option>, <option>--dtb=</option>, <option>--uname=</option>,
|
||||
<option>--sbat=</option>, <option>--pcrpkey=</option> see below. Only <option>--linux=</option> is
|
||||
mandatory. (Alternatively, specify <option>--current</option> to use the current values of PCR
|
||||
<option>--ucode=</option>, <option>--splash=</option>, <option>--dtb=</option>,
|
||||
<option>--uname=</option>, <option>--sbat=</option>, <option>--pcrpkey=</option> see below.
|
||||
Only <option>--linux=</option> is mandatory. (Alternatively, specify <option>--current</option> to use the current values of PCR
|
||||
register 11 instead.)</para>
|
||||
|
||||
<xi:include href="version-info.xml" xpointer="v252"/>
|
||||
@ -118,6 +118,7 @@
|
||||
<term><option>--osrel=<replaceable>PATH</replaceable></option></term>
|
||||
<term><option>--cmdline=<replaceable>PATH</replaceable></option></term>
|
||||
<term><option>--initrd=<replaceable>PATH</replaceable></option></term>
|
||||
<term><option>--ucode=<replaceable>PATH</replaceable></option></term>
|
||||
<term><option>--splash=<replaceable>PATH</replaceable></option></term>
|
||||
<term><option>--dtb=<replaceable>PATH</replaceable></option></term>
|
||||
<term><option>--uname=<replaceable>PATH</replaceable></option></term>
|
||||
|
@ -92,6 +92,7 @@ static int help(int argc, char *argv[], void *userdata) {
|
||||
" --osrel=PATH Path to os-release file %7$s .osrel\n"
|
||||
" --cmdline=PATH Path to file with kernel command line %7$s .cmdline\n"
|
||||
" --initrd=PATH Path to initrd image file %7$s .initrd\n"
|
||||
" --ucode=PATH Path to microcode image file %7$s .ucode\n"
|
||||
" --splash=PATH Path to splash bitmap file %7$s .splash\n"
|
||||
" --dtb=PATH Path to Devicetree file %7$s .dtb\n"
|
||||
" --uname=PATH Path to 'uname -r' file %7$s .uname\n"
|
||||
@ -133,6 +134,7 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
ARG_OSREL,
|
||||
ARG_CMDLINE,
|
||||
ARG_INITRD,
|
||||
ARG_UCODE,
|
||||
ARG_SPLASH,
|
||||
ARG_DTB,
|
||||
ARG_UNAME,
|
||||
@ -159,6 +161,7 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
{ "osrel", required_argument, NULL, ARG_OSREL },
|
||||
{ "cmdline", required_argument, NULL, ARG_CMDLINE },
|
||||
{ "initrd", required_argument, NULL, ARG_INITRD },
|
||||
{ "ucode", required_argument, NULL, ARG_UCODE },
|
||||
{ "splash", required_argument, NULL, ARG_SPLASH },
|
||||
{ "dtb", required_argument, NULL, ARG_DTB },
|
||||
{ "uname", required_argument, NULL, ARG_UNAME },
|
||||
|
Loading…
x
Reference in New Issue
Block a user