]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
docs: document hookdir variable as always declared main
authorJo Zzsi <jozzsicsataban@gmail.com>
Mon, 27 Apr 2026 20:21:34 +0000 (16:21 -0400)
committerdevkontrol <dev@kontrol.dev>
Tue, 28 Apr 2026 11:03:55 +0000 (07:03 -0400)
hookdir variable is the recommended way to refer to the path
of the directory used for dracut hooks during boot.

This variable is part of the API for 3rd party dracut modules.

Follow-up to 04d5e29 .

man/dracut.modules.7.adoc

index 5fbde1345fbc62f22ea6ca2f2005620d8d087188..faa7042557f4cb470797623ad14e19873bc6e26f 100644 (file)
@@ -182,6 +182,7 @@ Module should only read (and not write) these variables.
  * `$hostonly_mode` (could be an empty string)
  * `$hostonly_cmdline` (not an empty string)
  * `$moddir` (not an empty string)
  * `$hostonly_mode` (could be an empty string)
  * `$hostonly_cmdline` (not an empty string)
  * `$moddir` (not an empty string)
+ * `$hookdir` (not an empty string)
 
 First we create a check() function, which just exits with 0 indicating that this
 module should be included by default.
 
 First we create a check() function, which just exits with 0 indicating that this
 module should be included by default.