]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
measure: fix section names in 'objcopy' example in systemd-measure man
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 11 Nov 2022 16:15:55 +0000 (17:15 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 14 Nov 2022 11:31:33 +0000 (12:31 +0100)
A copy paste error has crippled in the objcopy example in 'systemd-measure'
manual,  "--change-section-vma" should reference the section being added,
not ".splash". When used as-is, the resulting UKI is unbootable.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
man/systemd-measure.xml

index 46fc9796549c065e7b56578c0743cb72ec290121..f3b2834b2ec23274c7f7ce5df91c1d2bc7727453 100644 (file)
     --add-section .initrd=initrd.cpio --change-section-vma .initrd=0x3000000 \
     --add-section .splash=splash.bmp --change-section-vma .splash=0x100000 \
     --add-section .dtb=devicetree.dtb --change-section-vma .dtb=0x40000 \
-    --add-section .pcrsig=tpm2-pcr-signature.json --change-section-vma .splash=0x80000 \
-    --add-section .pcrpkey=tpm2-pcr-public.pem --change-section-vma .splash=0x90000 \
+    --add-section .pcrsig=tpm2-pcr-signature.json --change-section-vma .pcrsig=0x80000 \
+    --add-section .pcrpkey=tpm2-pcr-public.pem --change-section-vma .pcrpkey=0x90000 \
     /usr/lib/systemd/boot/efi/linuxx64.efi.stub \
     foo.efi</programlisting>