]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Add docs, improve log comments. 27941/head
authorcvlc12 <cvlc12@outlook.fr>
Mon, 19 Jun 2023 15:31:58 +0000 (17:31 +0200)
committercvlc12 <cvlc12@outlook.fr>
Mon, 19 Jun 2023 15:34:53 +0000 (17:34 +0200)
man/kernel-install.xml
src/kernel-install/90-loaderentry.install.in

index b3aed1b8df07c0f39a5365a3f76c9f1088612f9d..613f01b85c31682f9a6e4ccf45af607478dc74a7 100644 (file)
             <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>.
-            It also creates a boot loader entry according to the <ulink
+            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
 
       <para><varname>$KERNEL_INSTALL_STAGING_AREA</varname> is set for plugins to a path to a directory.
       Plugins may drop files in that directory, and they will be installed as part of the loader entry, based
-      on the file name and extension.</para>
+      on the file name and extension: Files named <filename>initrd*</filename> will be installed as <replaceable>INITRD-FILE</replaceable>s, 
+      and files named <filename>microcode*</filename> will be prepended before <replaceable>INITRD-FILE</replaceable>s.</para>
+      
     </refsect2>
 
     <refsect2>
index e1cab0dc23b16c8e8ba799dc6b73f086368dd82e..800bb05d02b804755fe0e26ca4db81da32ad24f3 100755 (executable)
@@ -123,7 +123,7 @@ for initrd in "${KERNEL_INSTALL_STAGING_AREA}/microcode*" "${@}" "${KERNEL_INSTA
             "${KERNEL_INSTALL_STAGING_AREA}/initrd*" | "${KERNEL_INSTALL_STAGING_AREA}/microcode*")
             continue ;;
         esac
-        echo "Error: initrd '$initrd' not a file." >&2
+        echo "Error: '$initrd' is not a file." >&2
         exit 1
     }