]> git.ipfire.org Git - thirdparty/systemd.git/commit
mkosi: trim verity.sig json files to remove NUL padding before passing to jq (#41767)
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Wed, 22 Apr 2026 15:25:55 +0000 (17:25 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Apr 2026 15:25:55 +0000 (17:25 +0200)
commit2d28d3cb9173f357cbcd430e6a1164255332463f
treec98c03bed3c39101473414c250cf30e45ed31506
parentba59dd5eb6dbb24b73a648cdbc3e4d65f8442e01
parentb4053a6c4df51b7b36e8413f241dbda61c8d9df1
mkosi: trim verity.sig json files to remove NUL padding before passing to jq (#41767)

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

https://github.com/systemd/systemd/pull/41771 updates the producer.