]> git.ipfire.org Git - thirdparty/systemd.git/commit
mkosi: trim verity.sig json files to remove NUL padding before passing to jq
authorLuca Boccassi <luca.boccassi@gmail.com>
Wed, 22 Apr 2026 12:55:37 +0000 (13:55 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 22 Apr 2026 12:56:13 +0000 (13:56 +0100)
commit6dccf54cd646fe0621b4f256e7d61ad2fec2cbe6
tree5ec5dfbdef1eca1ee6cdac15029e90548b799b82
parent07de0c1159ba250af31fa2ed7d28d7cc621598fe
mkosi: trim verity.sig json files to remove NUL padding before passing to jq

jq started rejecting input that has NUL bytes to fix some security issues,
so we need to trim the verity.sig json files, which are spat out with
the NUL bytes padding from the GPT partition content.

‣  Running postinstall script /home/runner/work/systemd/systemd/mkosi/mkosi.postinst.chroot…
jq: parse error: Invalid numeric literal at EOF at line 1, column 16384
‣ "/work/postinst final" returned non-zero exit code 5.

https://github.com/jqlang/jq/commit/6374ae0bcdfe33a18eb0ae6db28493b1f34a0a5b
mkosi/mkosi.postinst.chroot