]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ukify: pass through --json to systemd-measure
authorLuca Boccassi <luca.boccassi@gmail.com>
Sun, 19 Jan 2025 15:43:14 +0000 (15:43 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 19 Jan 2025 16:22:38 +0000 (16:22 +0000)
So that --measure --json prints usable json output

src/ukify/ukify.py

index 6b532437acbe6db944ed56837e687944b48e9a44..b4070f3897bdb1a0c81e00ff638d114047a35619 100755 (executable)
@@ -763,6 +763,8 @@ def call_systemd_measure(uki: UKI, opts: UkifyConfig, profile_start: int = 0) ->
             cmd = [
                 measure_tool,
                 'calculate',
+                '--json',
+                opts.json,
                 *(f'--{s.name.removeprefix(".")}={s.content}' for s in to_measure.values()),
                 *(f'--bank={bank}' for bank in banks),
                 # For measurement, the keys are not relevant, so we can lump all the phase paths