From 5aac5deb759fbe64a18ef83990cad6501f25d25d Mon Sep 17 00:00:00 2001 From: Steffen Maier Date: Mon, 23 Jan 2023 12:52:11 +0100 Subject: [PATCH] zdev/dracut/module-setup.sh: add comments for dracut called functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a short explaining comment to those functions, which are just callbacks invoked by the dracut core infrastructure. So nobody wonders how these functions get called, especially if there are no local callers here in the code. Cf. dracut commit https://github.com/dracutdevs/dracut/commit/8bcfd683bd0c ("*/module-setup.sh: add comments for dracut called functions") For more information about the dracut module callback functions: https://github.com/dracutdevs/dracut/blob/master/man/dracut.modules.7.asc#writing-a-module https://github.com/dracutdevs/dracut/blob/master/docs/HACKING.md#writing-modules Github-ID: https://github.com/ibm-s390-linux/s390-tools/pull/158 Reviewed-by: Alexander Egorenkov Reviewed-by: Marc Hartmayer Reviewed-by: Vineeth Vijayan Acked-by: Vineeth Vijayan Acked-by: Peter Oberparleiter Signed-off-by: Steffen Maier Signed-off-by: Jan Höppner --- zdev/dracut/95zdev/module-setup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zdev/dracut/95zdev/module-setup.sh b/zdev/dracut/95zdev/module-setup.sh index 7837890b..cef1e2c9 100644 --- a/zdev/dracut/95zdev/module-setup.sh +++ b/zdev/dracut/95zdev/module-setup.sh @@ -13,6 +13,7 @@ # a hook is installed to parse rd.zdev= kernel parameters. # +# called by dracut check() { local _arch _arch=$(uname -m) @@ -33,10 +34,12 @@ check() { return 0 } +# called by dracut depends() { return 0 } +# called by dracut installkernel() { # Add modules for all device types supported by chzdev (required for # auto-configuration) @@ -44,6 +47,7 @@ installkernel() { dasd_diag_mod zfcp } +# called by dracut install() { local _tempfile