]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
NEWS: Clarify overlapping UKI PE section offsets
authorJan Janssen <medhefgo@web.de>
Mon, 31 Oct 2022 08:52:56 +0000 (09:52 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 31 Oct 2022 10:08:13 +0000 (11:08 +0100)
NEWS
man/systemd-stub.xml

diff --git a/NEWS b/NEWS
index 0e0939ee8d23c6d0f5de8a47c3515671e8cac54c..fc3b8ea4b4f31de348047e295acbc7def390f878 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -229,8 +229,14 @@ CHANGES WITH 252 in spe:
         * The sd-boot stub exports a StubFeatures flag, which is used by
           bootctl to show features supported by the stub that was used to boot.
 
-        * sd-boot will now try to detect and warn about overlapping PE sections
-          in the UKI.
+        * The PE section offsets that are used by tools that assemble unified
+          kernel images have historically been hard-coded. This may lead to
+          overlapping PE sections which may break on boot. The UKI will now try
+          to detect and warn about this.
+
+          Any tools that assemble UKIs must update to calculate these offsets
+          dynamically. Future sd-stub versions may use offsets that will not
+          work with the currently used set of hard-coded offsets!
 
         * sd-stub now accepts (and passes to the initrd and then to the full
           OS) new PE sections '.pcrsig' and '.pcrkey' that can be used to embed
index dacf0fa7a7b1d1e0e27696b0b8bed0b46955bed4..415d663f53e85ed51c9c5675d0c35fb8c9c36799 100644 (file)
     /usr/lib/systemd/boot/efi/linuxx64.efi.stub \
     foo-unsigned.efi</programlisting>
 
+    <para>Note that these PE section offsets are example values and a properly assembled image must not
+    contain any overlapping sections (this includes already existing sections inside the stub before
+    assembly) or boot may fail.</para>
+
     <para>This generates one PE executable file <filename>foo-unsigned.efi</filename> from the six individual
     files for OS release information, kernel command line, boot splash image, kernel image, main initrd and
     UEFI boot stub.</para>