]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man/kernel-install: update documents for plugins 36304/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 7 Feb 2025 06:20:25 +0000 (15:20 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 7 Feb 2025 10:52:36 +0000 (19:52 +0900)
Addresses the post-merge comments in #36218.

man/kernel-install.xml
tools/command_ignorelist

index 7c0ef0efc9f596c97736d1884f551633fc705f9b..9beff5c4de708db7754a8542292c6fd734a2aeea 100644 (file)
@@ -90,9 +90,7 @@
     <para>The following commands are understood:</para>
     <variablelist>
       <varlistentry>
-        <term>
-          <command>add [[[<replaceable>KERNEL-VERSION</replaceable>] <replaceable>KERNEL-IMAGE</replaceable>] [<replaceable>INITRD-FILE</replaceable> ...]]</command>
-        </term>
+        <term><command>add [[[<replaceable>KERNEL-VERSION</replaceable>] <replaceable>KERNEL-IMAGE</replaceable>] [<replaceable>INITRD-FILE</replaceable> ...]]</command></term>
 
         <listitem>
           <para>This command takes a kernel version string and a path to a kernel image file as arguments. If
           <filename>/etc/kernel/install.d/*.install</filename> (i.e. the plugins) are called with the
           following arguments:</para>
 
-          <programlisting>add <replaceable>KERNEL-VERSION</replaceable> <filename>$BOOT/<replaceable>ENTRY-TOKEN</replaceable>/<replaceable>KERNEL-VERSION</replaceable>/</filename> <replaceable>KERNEL-IMAGE</replaceable> \
-          [<replaceable>INITRD-FILE</replaceable> ...]</programlisting>
+          <programlisting>add <replaceable>KERNEL-VERSION</replaceable> <filename>$BOOT/<replaceable>ENTRY-TOKEN</replaceable>/<replaceable>KERNEL-VERSION</replaceable>/</filename> <replaceable>KERNEL-IMAGE</replaceable> [<replaceable>INITRD-FILE</replaceable> ...]</programlisting>
 
           <para>The third argument directly refers to the path where to place kernel images, initrd
           images and other resources for
           <para>The <replaceable>ENTRY-TOKEN</replaceable> string is typically the machine ID and is supposed
           to identify the local installation on the system. For details see below.</para>
 
-          <para>Two default plugins execute the following operations in this case:</para>
-
-          <itemizedlist>
-            <listitem><para><command>kernel-install</command> creates
-            <filename>$BOOT/<replaceable>ENTRY-TOKEN</replaceable>/<replaceable>KERNEL-VERSION</replaceable></filename>,
-            if enabled (see <varname>$KERNEL_INSTALL_LAYOUT</varname>).</para></listitem>
-
-            <listitem><para><filename>50-depmod.install</filename> runs
-            <citerefentry project='man-pages'><refentrytitle>depmod</refentrytitle><manvolnum>8</manvolnum></citerefentry> for the
-            <replaceable>KERNEL-VERSION</replaceable>.</para></listitem>
-
-            <listitem><para><filename>90-loaderentry.install</filename> copies
-            <replaceable>KERNEL-IMAGE</replaceable> to
-            <filename>$BOOT/<replaceable>ENTRY-TOKEN</replaceable>/<replaceable>KERNEL-VERSION</replaceable>/linux</filename>.
-            If <replaceable>INITRD-FILE</replaceable>s are provided, it also copies them to
-            <filename>$BOOT/<replaceable>ENTRY-TOKEN</replaceable>/<replaceable>KERNEL_VERSION</replaceable>/<replaceable>INITRD-FILE</replaceable></filename>.
-            This can also be used to prepend microcode before the actual initrd. It also creates a boot loader entry according to the <ulink
-            url="https://uapi-group.org/specifications/specs/boot_loader_specification">Boot Loader Specification</ulink> (Type #1) in
-            <filename>$BOOT/loader/entries/<replaceable>ENTRY-TOKEN</replaceable>-<replaceable>KERNEL-VERSION</replaceable>.conf</filename>.
-            The title of the entry is the <replaceable>PRETTY_NAME</replaceable> parameter specified in
-            <filename>/etc/os-release</filename> or <filename>/usr/lib/os-release</filename> (if the former
-            is missing), or "Linux <replaceable>KERNEL-VERSION</replaceable>", if unset.</para>
-
-            <para>If <varname>$KERNEL_INSTALL_LAYOUT</varname> is not "bls", this plugin does nothing.</para></listitem>
-
-            <listitem><para><filename>90-uki-copy.install</filename> copies a file
-            <filename>uki.efi</filename> from <varname>$KERNEL_INSTALL_STAGING_AREA</varname> or if it does
-            not exist the <replaceable>KERNEL-IMAGE</replaceable> argument, only if it has a
-            <literal>.efi</literal> extension, to
-            <filename>$BOOT/EFI/Linux/<replaceable>ENTRY-TOKEN</replaceable>-<replaceable>KERNEL-VERSION</replaceable>.efi</filename>.</para>
-
-            <para>If <varname>$KERNEL_INSTALL_LAYOUT</varname> is not "uki", this plugin does nothing.</para></listitem>
-          </itemizedlist>
+          <para><command>kernel-install</command> creates
+          <filename>$BOOT/<replaceable>ENTRY-TOKEN</replaceable>/<replaceable>KERNEL-VERSION</replaceable></filename>,
+          if enabled (see <varname>$KERNEL_INSTALL_LAYOUT</varname>).</para>
+
+          <para>Three default plugins execute the following operations in this case:</para>
+
+          <variablelist>
+            <varlistentry>
+              <term><filename>50-depmod.install</filename></term>
+              <listitem>
+                <para>The plugin runs
+                <citerefentry project='man-pages'><refentrytitle>depmod</refentrytitle><manvolnum>8</manvolnum></citerefentry>
+                for the <replaceable>KERNEL-VERSION</replaceable>.</para>
+              </listitem>
+            </varlistentry>
+
+            <varlistentry>
+              <term><filename>90-loaderentry.install</filename></term>
+              <listitem>
+                <para>The plugin copies <replaceable>KERNEL-IMAGE</replaceable> to
+                <filename>$BOOT/<replaceable>ENTRY-TOKEN</replaceable>/<replaceable>KERNEL-VERSION</replaceable>/linux</filename>.
+                If <replaceable>INITRD-FILE</replaceable>s are provided, it also copies them to
+                <filename>$BOOT/<replaceable>ENTRY-TOKEN</replaceable>/<replaceable>KERNEL_VERSION</replaceable>/<replaceable>INITRD-FILE</replaceable></filename>.
+                This can also be used to prepend microcode before the actual initrd. It also creates a boot
+                loader entry according to the
+                <ulink url="https://uapi-group.org/specifications/specs/boot_loader_specification">Boot Loader Specification</ulink>
+                (Type #1) in
+                <filename>$BOOT/loader/entries/<replaceable>ENTRY-TOKEN</replaceable>-<replaceable>KERNEL-VERSION</replaceable>.conf</filename>.
+                The title of the entry is the <replaceable>PRETTY_NAME</replaceable> parameter specified in
+                <filename>/etc/os-release</filename> or <filename>/usr/lib/os-release</filename> (if the
+                former is missing), or "Linux <replaceable>KERNEL-VERSION</replaceable>", if unset.</para>
+
+                <para>If <varname>$KERNEL_INSTALL_LAYOUT</varname> is not "bls", this plugin does nothing.</para>
+              </listitem>
+            </varlistentry>
+
+            <varlistentry>
+              <term><filename>90-uki-copy.install</filename></term>
+              <listitem>
+                <para>If <varname>$KERNEL_INSTALL_STAGING_AREA/uki.efi</varname> exists, the plugin copies it
+                to
+                <filename>$BOOT/EFI/Linux/<replaceable>ENTRY-TOKEN</replaceable>-<replaceable>KERNEL-VERSION</replaceable>.efi</filename>.
+                Also, files in <filename>$KERNEL_INSTALL_STAGING_AREA/uki.efi.extra.d"/</filename> are copied
+                to
+                <filename>$BOOT/EFI/Linux/<replaceable>ENTRY-TOKEN</replaceable>-<replaceable>KERNEL-VERSION</replaceable>.efi.extra.d/</filename>.</para>
+
+                <para>If <varname>$KERNEL_INSTALL_STAGING_AREA/uki.efi</varname> does not exist, and the
+                <replaceable>KERNEL-IMAGE</replaceable> argument has a <literal>.efi</literal> extension, the
+                plugin copies the image to
+                <filename>$BOOT/EFI/Linux/<replaceable>ENTRY-TOKEN</replaceable>-<replaceable>KERNEL-VERSION</replaceable>.efi</filename>.
+                Also, files in <filename><replaceable>KERNEL-IMAGE</replaceable>.extra.d/</filename> and
+                <filename>$KERNEL_INSTALL_STAGING_AREA/uki.efi.extra.d"/</filename> are copied to
+                <filename>$BOOT/EFI/Linux/<replaceable>ENTRY-TOKEN</replaceable>-<replaceable>KERNEL-VERSION</replaceable>.efi.extra.d/</filename>.</para>
+
+                <para>If <varname>$KERNEL_INSTALL_LAYOUT</varname> is not "uki", this plugin does nothing.</para>
+              </listitem>
+            </varlistentry>
+          </variablelist>
 
-            <xi:include href="version-info.xml" xpointer="v198"/>
+          <xi:include href="version-info.xml" xpointer="v198"/>
         </listitem>
       </varlistentry>
       <varlistentry>
           <filename>$BOOT/<replaceable>ENTRY-TOKEN</replaceable>/<replaceable>KERNEL-VERSION</replaceable>/</filename>
           and its contents, if it exists.</para>
 
-          <para>Two default plugins execute the following operations in this case:</para>
-
-          <itemizedlist>
-            <listitem><para><filename>50-depmod.install</filename> removes the files generated by
-            <command>depmod</command> for this kernel again.</para></listitem>
-
-            <listitem><para><filename>90-loaderentry.install</filename> removes the file
-            <filename>$BOOT/loader/entries/<replaceable>ENTRY-TOKEN</replaceable>-<replaceable>KERNEL-VERSION</replaceable>.conf</filename>.
-            </para></listitem>
+          <para>Three default plugins execute the following operations in this case:</para>
+
+          <variablelist>
+            <varlistentry>
+              <term><filename>50-depmod.install</filename></term>
+              <listitem>
+                <para>The plugin removes the files generated by <command>depmod</command> for this kernel again.</para>
+              </listitem>
+            </varlistentry>
+
+            <varlistentry>
+              <term><filename>90-loaderentry.install</filename></term>
+              <listitem>
+                <para>The plugin removes the file
+                <filename>$BOOT/loader/entries/<replaceable>ENTRY-TOKEN</replaceable>-<replaceable>KERNEL-VERSION</replaceable>.conf</filename>.
+                </para>
+              </listitem>
+            </varlistentry>
+
+            <varlistentry>
+              <term><filename>90-uki-copy.install</filename></term>
+              <listitem>
+                <para>The plugin removes the file
+                <filename>$BOOT/EFI/Linux/<replaceable>ENTRY-TOKEN</replaceable>-<replaceable>KERNEL-VERSION</replaceable>.efi</filename> and
+                <filename>$BOOT/EFI/Linux/<replaceable>ENTRY-TOKEN</replaceable>-<replaceable>KERNEL-VERSION</replaceable>.efi.extra.d/</filename>
+                directory including its contents.</para>
+              </listitem>
+            </varlistentry>
+          </variablelist>
 
-            <listitem><para><filename>90-uki-copy.install</filename> removes the file
-            <filename>$BOOT/EFI/Linux/<replaceable>ENTRY-TOKEN</replaceable>-<replaceable>KERNEL-VERSION</replaceable>.efi</filename>.
-            </para></listitem>
-          </itemizedlist>
-
-            <xi:include href="version-info.xml" xpointer="v198"/>
+          <xi:include href="version-info.xml" xpointer="v198"/>
         </listitem>
       </varlistentry>
       <varlistentry>
index d868c55b15e9c44c84fdefa2ff2ee70d6ea6329a..aca6b8c93bd19c48c78f0f873bc00f7d3d425e3d 100644 (file)
@@ -14,6 +14,12 @@ journald.conf.xml /refsect1[title="Options"]/variablelist/varlistentry[term="Com
 journald.conf.xml /refsect1[title="Options"]/variablelist/varlistentry[term="RateLimitIntervalSec="]
 journald.conf.xml /refsect1[title="Options"]/variablelist/varlistentry[term="SystemMaxUse="]
 journald.conf.xml /refsect1[title="Options"]/variablelist/varlistentry[term="ForwardToSyslog="]
+kernel-install.xml /refsect1[title="Commands"]/variablelist/varlistentry[term="add [[[KERNEL-VERSION] KERNEL-IMAGE] [INITRD-FILE ...]]"]/listitem/variablelist/varlistentry[term="50-depmod.install"]
+kernel-install.xml /refsect1[title="Commands"]/variablelist/varlistentry[term="add [[[KERNEL-VERSION] KERNEL-IMAGE] [INITRD-FILE ...]]"]/listitem/variablelist/varlistentry[term="90-loaderentry.install"]
+kernel-install.xml /refsect1[title="Commands"]/variablelist/varlistentry[term="add [[[KERNEL-VERSION] KERNEL-IMAGE] [INITRD-FILE ...]]"]/listitem/variablelist/varlistentry[term="90-uki-copy.install"]
+kernel-install.xml /refsect1[title="Commands"]/variablelist/varlistentry[term="remove KERNEL-VERSION"]/listitem/variablelist/varlistentry[term="50-depmod.install"]
+kernel-install.xml /refsect1[title="Commands"]/variablelist/varlistentry[term="remove KERNEL-VERSION"]/listitem/variablelist/varlistentry[term="90-loaderentry.install"]
+kernel-install.xml /refsect1[title="Commands"]/variablelist/varlistentry[term="remove KERNEL-VERSION"]/listitem/variablelist/varlistentry[term="90-uki-copy.install"]
 loginctl.xml /refsect1[title="Options"]/variablelist/varlistentry[term="-p"]
 loginctl.xml /refsect1[title="Options"]/variablelist/varlistentry[term="-a"]
 loginctl.xml /refsect1[title="Options"]/variablelist/varlistentry[term="--no-ask-password"]