1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-22 06:50:18 +03:00

ukify: pass through --json to systemd-measure

So that --measure --json prints usable json output
This commit is contained in:
Luca Boccassi 2025-01-19 15:43:14 +00:00
parent 7fe9fb9599
commit 7bf31680ad

View File

@ -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