]> git.ipfire.org Git - thirdparty/systemd.git/commit
kernel-install: Add --json option for inspect verb 29675/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 23 Oct 2023 09:18:35 +0000 (11:18 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 6 Nov 2023 13:43:09 +0000 (14:43 +0100)
commitbdd36c003d9c4c4ca89c92be504615378f61513c
tree071f201dec21e3b7a34ee5ed87e5da67c3dbcd02
parentad6216cbc754431951828309872fc225679e5136
kernel-install: Add --json option for inspect verb

In mkosi, we can't use kernel-install directly but we do want to
mimick its behavior as much as possible. Let's make that easier by
making it easy to fetch data from kernel-install as JSON.

To get all the necessary data, we extend the inspect verb to also
allow passing in a kernel version and initrds, to mimick the "add"
verb. The kernel version is used to determine the "Entry Directory",
and in absence of auto-detection of kernel version in kernel-install
we have to allow users to pass it.

We also add --no-pager while we're at it.
man/kernel-install.xml
src/kernel-install/kernel-install.c
src/kernel-install/test-kernel-install.sh