summaryrefslogtreecommitdiffstats
path: root/src/ukify/ukify.py
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-10-05 12:14:14 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-10-09 19:51:08 +0200
commitbe64d42f9f59bc071e161772417a6185426fdaa3 (patch)
tree33c308ff20e50247e0abb2ce74801a891d042c70 /src/ukify/ukify.py
parentMerge pull request #34641 from behrmann/ukifystyle (diff)
downloadsystemd-be64d42f9f59bc071e161772417a6185426fdaa3.tar.xz
systemd-be64d42f9f59bc071e161772417a6185426fdaa3.zip
ukify: Fix off by one error
We weren't measuring the profile section itself.
Diffstat (limited to 'src/ukify/ukify.py')
-rwxr-xr-xsrc/ukify/ukify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py
index 93ad78b01d..a94e6eefd6 100755
--- a/src/ukify/ukify.py
+++ b/src/ukify/ukify.py
@@ -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