From 2c79625c18cbdb61e165cb34c048e56abea49463 Mon Sep 17 00:00:00 2001 From: Jo Zzsi Date: Mon, 27 Apr 2026 16:21:34 -0400 Subject: [PATCH] docs: document hookdir variable as always declared 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/man/dracut.modules.7.adoc b/man/dracut.modules.7.adoc index 5fbde1345..faa704255 100644 --- a/man/dracut.modules.7.adoc +++ b/man/dracut.modules.7.adoc @@ -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) + * `$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. -- 2.47.3