]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
docs: define hostonly_mode strict with more detail
authorJo Zzsi <jozzsicsataban@gmail.com>
Fri, 19 Sep 2025 23:57:56 +0000 (19:57 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Mon, 22 Sep 2025 13:34:24 +0000 (09:34 -0400)
Document the goal to keep the list of dracut modules the same for
both hostonly_modes.

man/dracut.modules.7.adoc

index b447d3d21de4b53d7d70d114c0e3008163a84f7a..571dd67c74f53cdc58135d6e4fc2f73c669d4d48 100644 (file)
@@ -224,6 +224,10 @@ $hostonly:: If the $hostonly variable is set, then the module check() function
 should be in "hostonly" mode, which means, that the check() should only return
 0, if the module is really needed to boot this specific host.
 
+Avoid making decisions inside this function based on the value of the
+$hostonly_mode variable. This principle ensures the inclusion of the
+same dracut modules in both sloppy and strict modes.
+
 check() should return with:
 
 0:: Include the dracut module in the initramfs.