kernel-install: make "inspect" work more like "add" regarding omission of parameters

This makes "kernel-install inspect" work more "kernel-install add": if
the version or kernel image is specified as "-" or omitted we'll make it
up.
This commit is contained in:
Lennart Poettering
2023-11-07 16:07:57 +01:00
parent ec1399f567
commit 758d14767d
2 changed files with 69 additions and 31 deletions
+6 -4
View File
@@ -200,13 +200,15 @@
</varlistentry>
<varlistentry>
<term>
<command>inspect [[<replaceable>KERNEL-VERSION</replaceable>] <replaceable>KERNEL-IMAGE</replaceable>] [<replaceable>INITRD-FILE</replaceable> ...]</command>
<command>inspect [[[<replaceable>KERNEL-VERSION</replaceable>] <replaceable>KERNEL-IMAGE</replaceable>] [<replaceable>INITRD-FILE</replaceable> ...]]</command>
</term>
<listitem>
<para>Takes the same parameters as <command>add</command>.</para>
<para>Shows the various paths and parameters configured or auto-detected. In particular shows the
values of the various <varname>$KERNEL_INSTALL_*</varname> environment variables listed
below. The <option>--json</option> option can be used to get the output of this verb as a JSON
object.</para>
values of the various <varname>$KERNEL_INSTALL_*</varname> environment variables listed below, as
they would be passed to plugins. The <option>--json</option> option can be used to get the output
of this verb as a JSON object.</para>
<xi:include href="version-info.xml" xpointer="v251"/>
</listitem>