]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ukify: Fix off by one error
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 5 Oct 2024 10:14:14 +0000 (12:14 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 9 Oct 2024 17:51:08 +0000 (19:51 +0200)
We weren't measuring the profile section itself.

src/ukify/ukify.py

index 93ad78b01d1a7d297f2f5c60b3e0fb6035a167f2..a94e6eefd6a0e11c65b1b8b522f02f0ee1d3f437 100755 (executable)
@@ -1052,7 +1052,7 @@ def make_uki(opts: argparse.Namespace) -> None:
                 Section.create(n, section.get_data(length=section.Misc_VirtualSize), measure=True)
             )
 
-        call_systemd_measure(uki, opts=opts, profile_start=prev_len + 1)
+        call_systemd_measure(uki, opts=opts, profile_start=prev_len)
 
     # UKI creation