Blame 0002-module-setup.sh-add-comments-for-dracut-called-funct.patch

Harald Hoyer e7efcf
From 8bcfd683bd0c533708d8e1367373932d42b64b59 Mon Sep 17 00:00:00 2001
Harald Hoyer e7efcf
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer e7efcf
Date: Tue, 8 Oct 2013 10:37:56 +0200
Harald Hoyer e7efcf
Subject: [PATCH] */module-setup.sh: add comments for dracut called functions
Harald Hoyer e7efcf
Harald Hoyer e7efcf
---
Harald Hoyer e7efcf
 modules.d/00bash/module-setup.sh              | 3 +++
Harald Hoyer e7efcf
 modules.d/00bootchart/module-setup.sh         | 3 +++
Harald Hoyer e7efcf
 modules.d/00dash/module-setup.sh              | 3 +++
Harald Hoyer e7efcf
 modules.d/00systemd-bootchart/module-setup.sh | 3 +++
Harald Hoyer e7efcf
 modules.d/01fips/module-setup.sh              | 4 ++++
Harald Hoyer e7efcf
 modules.d/02caps/module-setup.sh              | 3 +++
Harald Hoyer e7efcf
 modules.d/02fips-aesni/module-setup.sh        | 4 ++++
Harald Hoyer e7efcf
 modules.d/03modsign/module-setup.sh           | 3 +++
Harald Hoyer e7efcf
 modules.d/03rescue/module-setup.sh            | 3 +++
Harald Hoyer e7efcf
 modules.d/04watchdog/module-setup.sh          | 3 +++
Harald Hoyer e7efcf
 modules.d/05busybox/module-setup.sh           | 3 +++
Harald Hoyer e7efcf
 modules.d/10i18n/module-setup.sh              | 3 +++
Harald Hoyer e7efcf
 modules.d/30convertfs/module-setup.sh         | 3 +++
Harald Hoyer e7efcf
 modules.d/40network/module-setup.sh           | 4 ++++
Harald Hoyer e7efcf
 modules.d/45ifcfg/module-setup.sh             | 3 +++
Harald Hoyer e7efcf
 modules.d/45url-lib/module-setup.sh           | 3 +++
Harald Hoyer e7efcf
 modules.d/50drm/module-setup.sh               | 3 +++
Harald Hoyer e7efcf
 modules.d/50gensplash/module-setup.sh         | 3 +++
Harald Hoyer e7efcf
 modules.d/50plymouth/module-setup.sh          | 3 +++
Harald Hoyer e7efcf
 modules.d/80cms/module-setup.sh               | 4 ++++
Harald Hoyer e7efcf
 modules.d/90btrfs/module-setup.sh             | 4 ++++
Harald Hoyer e7efcf
 modules.d/90crypt/module-setup.sh             | 5 +++++
Harald Hoyer e7efcf
 modules.d/90dm/module-setup.sh                | 4 ++++
Harald Hoyer e7efcf
 modules.d/90dmraid/module-setup.sh            | 4 ++++
Harald Hoyer e7efcf
 modules.d/90dmsquash-live/module-setup.sh     | 4 ++++
Harald Hoyer e7efcf
 modules.d/90kernel-modules/module-setup.sh    | 2 ++
Harald Hoyer e7efcf
 modules.d/90livenet/module-setup.sh           | 3 +++
Harald Hoyer e7efcf
 modules.d/90lvm/module-setup.sh               | 4 ++++
Harald Hoyer e7efcf
 modules.d/90mdraid/module-setup.sh            | 5 +++++
Harald Hoyer e7efcf
 modules.d/90multipath/module-setup.sh         | 4 ++++
Harald Hoyer e7efcf
 modules.d/90qemu-net/module-setup.sh          | 2 ++
Harald Hoyer e7efcf
 modules.d/90qemu/module-setup.sh              | 2 ++
Harald Hoyer e7efcf
 modules.d/91crypt-gpg/module-setup.sh         | 3 +++
Harald Hoyer e7efcf
 modules.d/91crypt-loop/module-setup.sh        | 4 ++++
Harald Hoyer e7efcf
 modules.d/95cifs/module-setup.sh              | 4 ++++
Harald Hoyer e7efcf
 modules.d/95dasd/module-setup.sh              | 4 ++++
Harald Hoyer e7efcf
 modules.d/95dasd_mod/module-setup.sh          | 4 ++++
Harald Hoyer e7efcf
 modules.d/95debug/module-setup.sh             | 3 +++
Harald Hoyer e7efcf
 modules.d/95fcoe/module-setup.sh              | 4 ++++
Harald Hoyer e7efcf
 modules.d/95fstab-sys/module-setup.sh         | 3 +++
Harald Hoyer e7efcf
 modules.d/95iscsi/module-setup.sh             | 4 ++++
Harald Hoyer e7efcf
 modules.d/95nbd/module-setup.sh               | 4 ++++
Harald Hoyer e7efcf
 modules.d/95nfs/module-setup.sh               | 4 ++++
Harald Hoyer e7efcf
 modules.d/95resume/module-setup.sh            | 2 ++
Harald Hoyer e7efcf
 modules.d/95rootfs-block/module-setup.sh      | 4 ++++
Harald Hoyer e7efcf
 modules.d/95ssh-client/module-setup.sh        | 3 +++
Harald Hoyer e7efcf
 modules.d/95terminfo/module-setup.sh          | 1 +
Harald Hoyer e7efcf
 modules.d/95udev-rules/module-setup.sh        | 1 +
Harald Hoyer e7efcf
 modules.d/95virtfs/module-setup.sh            | 4 ++++
Harald Hoyer e7efcf
 modules.d/95zfcp/module-setup.sh              | 4 ++++
Harald Hoyer e7efcf
 modules.d/95znet/module-setup.sh              | 4 ++++
Harald Hoyer e7efcf
 modules.d/96securityfs/module-setup.sh        | 3 +++
Harald Hoyer e7efcf
 modules.d/97biosdevname/module-setup.sh       | 3 +++
Harald Hoyer e7efcf
 modules.d/97masterkey/module-setup.sh         | 4 ++++
Harald Hoyer e7efcf
 modules.d/98ecryptfs/module-setup.sh          | 4 ++++
Harald Hoyer e7efcf
 modules.d/98integrity/module-setup.sh         | 3 +++
Harald Hoyer e7efcf
 modules.d/98pollcdrom/module-setup.sh         | 3 +++
Harald Hoyer e7efcf
 modules.d/98selinux/module-setup.sh           | 3 +++
Harald Hoyer e7efcf
 modules.d/98syslog/module-setup.sh            | 3 +++
Harald Hoyer e7efcf
 modules.d/98systemd/module-setup.sh           | 3 +++
Harald Hoyer e7efcf
 modules.d/98usrmount/module-setup.sh          | 3 +++
Harald Hoyer e7efcf
 modules.d/99base/module-setup.sh              | 3 +++
Harald Hoyer e7efcf
 modules.d/99fs-lib/module-setup.sh            | 4 ++++
Harald Hoyer e7efcf
 modules.d/99img-lib/module-setup.sh           | 3 +++
Harald Hoyer e7efcf
 modules.d/99shutdown/module-setup.sh          | 3 +++
Harald Hoyer e7efcf
 65 files changed, 216 insertions(+)
Harald Hoyer e7efcf
Harald Hoyer e7efcf
diff --git a/modules.d/00bash/module-setup.sh b/modules.d/00bash/module-setup.sh
Harald Hoyer e7efcf
index e874e73..f599940 100755
Harald Hoyer e7efcf
--- a/modules.d/00bash/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/00bash/module-setup.sh
Harald Hoyer e7efcf
@@ -2,14 +2,17 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     [ -x /bin/bash ]
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     # If another shell is already installed, do not use bash
Harald Hoyer e7efcf
     [[ -x $initdir/bin/sh ]] && return
Harald Hoyer e7efcf
diff --git a/modules.d/00bootchart/module-setup.sh b/modules.d/00bootchart/module-setup.sh
Harald Hoyer e7efcf
index 72b6063..107ee5b 100755
Harald Hoyer e7efcf
--- a/modules.d/00bootchart/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/00bootchart/module-setup.sh
Harald Hoyer e7efcf
@@ -2,16 +2,19 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     [[ "$mount_needs" ]] && return 1
Harald Hoyer e7efcf
     [ -x /sbin/bootchartd ] || return 1
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_symlink /init /sbin/init
Harald Hoyer e7efcf
     inst_dir /lib/bootchart/tmpfs
Harald Hoyer e7efcf
diff --git a/modules.d/00dash/module-setup.sh b/modules.d/00dash/module-setup.sh
Harald Hoyer e7efcf
index dfd4d7b..47f7b03 100755
Harald Hoyer e7efcf
--- a/modules.d/00dash/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/00dash/module-setup.sh
Harald Hoyer e7efcf
@@ -2,14 +2,17 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     [ -x /bin/dash ]
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     # If another shell is already installed, do not use dash
Harald Hoyer e7efcf
     [[ -x $initdir/bin/sh ]] && return
Harald Hoyer e7efcf
diff --git a/modules.d/00systemd-bootchart/module-setup.sh b/modules.d/00systemd-bootchart/module-setup.sh
Harald Hoyer e7efcf
index 3eb4de1..a897cef 100755
Harald Hoyer e7efcf
--- a/modules.d/00systemd-bootchart/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/00systemd-bootchart/module-setup.sh
Harald Hoyer e7efcf
@@ -2,16 +2,19 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     [[ "$mount_needs" ]] && return 1
Harald Hoyer e7efcf
     [ -x $systemdutildir/systemd-bootchart ] || return 1
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_symlink /init /sbin/init
Harald Hoyer e7efcf
     inst_multiple $systemdutildir/systemd-bootchart
Harald Hoyer e7efcf
diff --git a/modules.d/01fips/module-setup.sh b/modules.d/01fips/module-setup.sh
Harald Hoyer e7efcf
index d08e3f7..6493290 100755
Harald Hoyer e7efcf
--- a/modules.d/01fips/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/01fips/module-setup.sh
Harald Hoyer e7efcf
@@ -2,14 +2,17 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     local _fipsmodules _mod
Harald Hoyer e7efcf
     _fipsmodules="aead aes_generic aes-x86_64 ansi_cprng arc4 blowfish camellia cast6 cbc ccm "
Harald Hoyer e7efcf
@@ -28,6 +31,7 @@ installkernel() {
Harald Hoyer e7efcf
     done
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _dir
Harald Hoyer e7efcf
     inst_hook pre-trigger 01 "$moddir/fips-boot.sh"
Harald Hoyer e7efcf
diff --git a/modules.d/02caps/module-setup.sh b/modules.d/02caps/module-setup.sh
Harald Hoyer e7efcf
index c9d94ee..6019188 100755
Harald Hoyer e7efcf
--- a/modules.d/02caps/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/02caps/module-setup.sh
Harald Hoyer e7efcf
@@ -2,14 +2,17 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     type -P capsh >/dev/null 2>&1
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_hook pre-pivot 00 "$moddir/caps.sh"
Harald Hoyer e7efcf
     inst $(type -P capsh 2>/dev/null) /usr/sbin/capsh
Harald Hoyer e7efcf
diff --git a/modules.d/02fips-aesni/module-setup.sh b/modules.d/02fips-aesni/module-setup.sh
Harald Hoyer e7efcf
index fb4010d..002b7d4 100755
Harald Hoyer e7efcf
--- a/modules.d/02fips-aesni/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/02fips-aesni/module-setup.sh
Harald Hoyer e7efcf
@@ -2,14 +2,17 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     local _fipsmodules _mod
Harald Hoyer e7efcf
     _fipsmodules="aesni-intel ghash_clmulni_intel"
Harald Hoyer e7efcf
@@ -24,6 +27,7 @@ installkernel() {
Harald Hoyer e7efcf
     done
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
diff --git a/modules.d/03modsign/module-setup.sh b/modules.d/03modsign/module-setup.sh
Harald Hoyer e7efcf
index 730cd86..5dfd90c 100644
Harald Hoyer e7efcf
--- a/modules.d/03modsign/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/03modsign/module-setup.sh
Harald Hoyer e7efcf
@@ -7,6 +7,7 @@
Harald Hoyer e7efcf
 # Copyright 2013 Red Hat, Inc.
Harald Hoyer e7efcf
 # Peter Jones <pjones@redhat.com>
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     [[ -x /usr/bin/keyctl ]] || return 1
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
@@ -20,10 +21,12 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_dir /lib/modules/keys
Harald Hoyer e7efcf
     inst_binary /usr/bin/keyctl
Harald Hoyer e7efcf
diff --git a/modules.d/03rescue/module-setup.sh b/modules.d/03rescue/module-setup.sh
Harald Hoyer e7efcf
index 72a4287..289c934 100755
Harald Hoyer e7efcf
--- a/modules.d/03rescue/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/03rescue/module-setup.sh
Harald Hoyer e7efcf
@@ -2,15 +2,18 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     # do not add this module by default
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_multiple -o ps grep more cat rm strace free showmount \
Harald Hoyer e7efcf
         ping netstat rpcinfo vi scp ping6 ssh \
Harald Hoyer e7efcf
diff --git a/modules.d/04watchdog/module-setup.sh b/modules.d/04watchdog/module-setup.sh
Harald Hoyer e7efcf
index b7725ef..44dce61 100755
Harald Hoyer e7efcf
--- a/modules.d/04watchdog/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/04watchdog/module-setup.sh
Harald Hoyer e7efcf
@@ -2,14 +2,17 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_hook cmdline   00 "$moddir/watchdog.sh"
Harald Hoyer e7efcf
     inst_hook cmdline   50 "$moddir/watchdog.sh"
Harald Hoyer e7efcf
diff --git a/modules.d/05busybox/module-setup.sh b/modules.d/05busybox/module-setup.sh
Harald Hoyer e7efcf
index edcc8da..6e508a6 100755
Harald Hoyer e7efcf
--- a/modules.d/05busybox/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/05busybox/module-setup.sh
Harald Hoyer e7efcf
@@ -2,16 +2,19 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     type -P busybox >/dev/null || return 1
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _i _progs _path _busybox
Harald Hoyer e7efcf
     _busybox=$(type -P busybox)
Harald Hoyer e7efcf
diff --git a/modules.d/10i18n/module-setup.sh b/modules.d/10i18n/module-setup.sh
Harald Hoyer e7efcf
index 2a83728..0741c64 100755
Harald Hoyer e7efcf
--- a/modules.d/10i18n/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/10i18n/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     [[ "$mount_needs" ]] && return 1
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
@@ -12,10 +13,12 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     if dracut_module_included "systemd"; then
Harald Hoyer e7efcf
         [[ -f /etc/vconsole.conf ]] || return 0
Harald Hoyer e7efcf
diff --git a/modules.d/30convertfs/module-setup.sh b/modules.d/30convertfs/module-setup.sh
Harald Hoyer e7efcf
index 9efd5dd..1e73455 100755
Harald Hoyer e7efcf
--- a/modules.d/30convertfs/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/30convertfs/module-setup.sh
Harald Hoyer e7efcf
@@ -2,15 +2,18 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     [[ $mount_needs ]] && return 1
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_multiple bash find ldconfig mv rm cp ln
Harald Hoyer e7efcf
     inst_hook pre-pivot 99 "$moddir/do-convertfs.sh"
Harald Hoyer e7efcf
diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
Harald Hoyer e7efcf
index d2833d0..8a2898c 100755
Harald Hoyer e7efcf
--- a/modules.d/40network/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/40network/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     local _program
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
@@ -15,10 +16,12 @@ check() {
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     # Include wired net drivers, excluding wireless
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
@@ -67,6 +70,7 @@ installkernel() {
Harald Hoyer e7efcf
     instmods =drivers/net/phy ecb arc4 bridge stp llc ipv6 bonding 8021q af_packet virtio_net =drivers/net/team
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _arch _i _dir
Harald Hoyer e7efcf
     inst_multiple ip arping dhclient sed
Harald Hoyer e7efcf
diff --git a/modules.d/45ifcfg/module-setup.sh b/modules.d/45ifcfg/module-setup.sh
Harald Hoyer e7efcf
index ce53e5e..c407f45 100755
Harald Hoyer e7efcf
--- a/modules.d/45ifcfg/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/45ifcfg/module-setup.sh
Harald Hoyer e7efcf
@@ -2,15 +2,18 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     [[ -d /etc/sysconfig/network-scripts ]] && return 0
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_hook pre-pivot 85 "$moddir/write-ifcfg.sh"
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
diff --git a/modules.d/45url-lib/module-setup.sh b/modules.d/45url-lib/module-setup.sh
Harald Hoyer e7efcf
index b5cf36f..1ed97ac 100755
Harald Hoyer e7efcf
--- a/modules.d/45url-lib/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/45url-lib/module-setup.sh
Harald Hoyer e7efcf
@@ -1,16 +1,19 @@
Harald Hoyer e7efcf
 #!/bin/bash
Harald Hoyer e7efcf
 # module-setup for url-lib
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     command -v curl >/dev/null || return 1
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo network
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _dir _crt _found _lib
Harald Hoyer e7efcf
     inst_simple "$moddir/url-lib.sh" "/lib/url-lib.sh"
Harald Hoyer e7efcf
diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh
Harald Hoyer e7efcf
index bf33c5b..e25fc9f 100644
Harald Hoyer e7efcf
--- a/modules.d/50drm/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/50drm/module-setup.sh
Harald Hoyer e7efcf
@@ -2,14 +2,17 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     local _modname
Harald Hoyer e7efcf
     # Include KMS capable drm drivers
Harald Hoyer e7efcf
diff --git a/modules.d/50gensplash/module-setup.sh b/modules.d/50gensplash/module-setup.sh
Harald Hoyer e7efcf
index cfee55a..64e8162 100755
Harald Hoyer e7efcf
--- a/modules.d/50gensplash/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/50gensplash/module-setup.sh
Harald Hoyer e7efcf
@@ -2,16 +2,19 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     # TODO: splash_geninitramfs
Harald Hoyer e7efcf
     # TODO: /usr/share/splashutils/initrd.splash
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _opts
Harald Hoyer e7efcf
     local _splash_theme
Harald Hoyer e7efcf
diff --git a/modules.d/50plymouth/module-setup.sh b/modules.d/50plymouth/module-setup.sh
Harald Hoyer e7efcf
index e0e6936..1360924 100755
Harald Hoyer e7efcf
--- a/modules.d/50plymouth/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/50plymouth/module-setup.sh
Harald Hoyer e7efcf
@@ -2,15 +2,18 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     [[ "$mount_needs" ]] && return 1
Harald Hoyer e7efcf
     type -P plymouthd >/dev/null && type -P plymouth >/dev/null
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo drm
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     if grep -q nash /usr/libexec/plymouth/plymouth-populate-initrd \
Harald Hoyer e7efcf
         || [ ! -x /usr/libexec/plymouth/plymouth-populate-initrd ]; then
Harald Hoyer e7efcf
diff --git a/modules.d/80cms/module-setup.sh b/modules.d/80cms/module-setup.sh
Harald Hoyer e7efcf
index c99f236..0b921d8 100755
Harald Hoyer e7efcf
--- a/modules.d/80cms/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/80cms/module-setup.sh
Harald Hoyer e7efcf
@@ -2,12 +2,14 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     arch=$(uname -m)
Harald Hoyer e7efcf
     [ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     arch=$(uname -m)
Harald Hoyer e7efcf
     [ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1
Harald Hoyer e7efcf
@@ -15,10 +17,12 @@ depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     instmods zfcp
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_hook pre-trigger 30 "$moddir/cmssetup.sh"
Harald Hoyer e7efcf
     inst_hook pre-pivot 95 "$moddir/cms-write-ifcfg.sh"
Harald Hoyer e7efcf
diff --git a/modules.d/90btrfs/module-setup.sh b/modules.d/90btrfs/module-setup.sh
Harald Hoyer e7efcf
index a280594..80a538f 100755
Harald Hoyer e7efcf
--- a/modules.d/90btrfs/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/90btrfs/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     local _rootdev
Harald Hoyer e7efcf
     # if we don't have btrfs installed on the host system,
Harald Hoyer e7efcf
@@ -18,15 +19,18 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo udev-rules
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     instmods btrfs
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     if ! inst_rules 64-btrfs.rules; then
Harald Hoyer e7efcf
         inst_rules "$moddir/80-btrfs.rules"
Harald Hoyer e7efcf
diff --git a/modules.d/90crypt/module-setup.sh b/modules.d/90crypt/module-setup.sh
Harald Hoyer e7efcf
index 1858391..7d18e33 100755
Harald Hoyer e7efcf
--- a/modules.d/90crypt/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/90crypt/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     local _rootdev
Harald Hoyer e7efcf
     # if cryptsetup is not installed, then we cannot support encrypted devices.
Harald Hoyer e7efcf
@@ -17,15 +18,18 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo dm rootfs-block
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     instmods dm_crypt =crypto
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 cmdline() {
Harald Hoyer e7efcf
     local dev UUID
Harald Hoyer e7efcf
     for dev in "${!host_fs_types[@]}"; do
Harald Hoyer e7efcf
@@ -44,6 +48,7 @@ cmdline() {
Harald Hoyer e7efcf
     done
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
     cmdline >> "${initdir}/etc/cmdline.d/90crypt.conf"
Harald Hoyer e7efcf
diff --git a/modules.d/90dm/module-setup.sh b/modules.d/90dm/module-setup.sh
Harald Hoyer e7efcf
index fa38e85..bafad67 100755
Harald Hoyer e7efcf
--- a/modules.d/90dm/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/90dm/module-setup.sh
Harald Hoyer e7efcf
@@ -2,20 +2,24 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     type -P dmsetup >/dev/null || return 1
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     instmods =drivers/md
Harald Hoyer e7efcf
     instmods dm_mod
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     modinfo -k $kernel dm_mod >/dev/null 2>&1 && \
Harald Hoyer e7efcf
         inst_hook pre-udev 30 "$moddir/dm-pre-udev.sh"
Harald Hoyer e7efcf
diff --git a/modules.d/90dmraid/module-setup.sh b/modules.d/90dmraid/module-setup.sh
Harald Hoyer e7efcf
index 11181cf..a9e27a6 100755
Harald Hoyer e7efcf
--- a/modules.d/90dmraid/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/90dmraid/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     local _rootdev
Harald Hoyer e7efcf
     # if we don't have dmraid installed on the host system, no point
Harald Hoyer e7efcf
@@ -27,11 +28,13 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo dm rootfs-block
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 cmdline() {
Harald Hoyer e7efcf
     local _activated
Harald Hoyer e7efcf
     declare -A _activated
Harald Hoyer e7efcf
@@ -58,6 +61,7 @@ cmdline() {
Harald Hoyer e7efcf
     done
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _i
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
diff --git a/modules.d/90dmsquash-live/module-setup.sh b/modules.d/90dmsquash-live/module-setup.sh
Harald Hoyer e7efcf
index c6d1f9d..851fd1a 100755
Harald Hoyer e7efcf
--- a/modules.d/90dmsquash-live/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/90dmsquash-live/module-setup.sh
Harald Hoyer e7efcf
@@ -2,12 +2,14 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     # a live host-only image doesn't really make a lot of sense
Harald Hoyer e7efcf
     [[ $hostonly ]] && return 1
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     # if dmsetup is not installed, then we cannot support fedora/red hat
Harald Hoyer e7efcf
     # style live images
Harald Hoyer e7efcf
@@ -15,10 +17,12 @@ depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     instmods squashfs loop iso9660
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_multiple umount dmsetup blkid dd losetup grep blockdev
Harald Hoyer e7efcf
     inst_multiple -o checkisomd5
Harald Hoyer e7efcf
diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh
Harald Hoyer e7efcf
index e7e2ca0..f6d1c3d 100755
Harald Hoyer e7efcf
--- a/modules.d/90kernel-modules/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/90kernel-modules/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     if [[ -z $drivers ]]; then
Harald Hoyer e7efcf
         block_module_filter() {
Harald Hoyer e7efcf
@@ -73,6 +74,7 @@ installkernel() {
Harald Hoyer e7efcf
     :
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_multiple -o /lib/modprobe.d/*.conf
Harald Hoyer e7efcf
     [[ $hostonly ]] && inst_multiple -o /etc/modprobe.d/*.conf /etc/modprobe.conf
Harald Hoyer e7efcf
diff --git a/modules.d/90livenet/module-setup.sh b/modules.d/90livenet/module-setup.sh
Harald Hoyer e7efcf
index be7832b..f1e757e 100755
Harald Hoyer e7efcf
--- a/modules.d/90livenet/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/90livenet/module-setup.sh
Harald Hoyer e7efcf
@@ -1,15 +1,18 @@
Harald Hoyer e7efcf
 #!/bin/bash
Harald Hoyer e7efcf
 # module-setup.sh for livenet
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo network url-lib dmsquash-live img-lib
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_hook cmdline 29 "$moddir/parse-livenet.sh"
Harald Hoyer e7efcf
     inst_hook initqueue/online 95 "$moddir/fetch-liveupdate.sh"
Harald Hoyer e7efcf
diff --git a/modules.d/90lvm/module-setup.sh b/modules.d/90lvm/module-setup.sh
Harald Hoyer e7efcf
index 514addc..f8b598d 100755
Harald Hoyer e7efcf
--- a/modules.d/90lvm/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/90lvm/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     # No point trying to support lvm if the binaries are missing
Harald Hoyer e7efcf
     type -P lvm >/dev/null || return 1
Harald Hoyer e7efcf
@@ -16,6 +17,7 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     # We depend on dm_mod being loaded
Harald Hoyer e7efcf
     echo rootfs-block dm
Harald Hoyer e7efcf
@@ -41,12 +43,14 @@ get_host_lvs() {
Harald Hoyer e7efcf
     done
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 cmdline() {
Harald Hoyer e7efcf
     get_host_lvs | while read line; do
Harald Hoyer e7efcf
         printf " rd.lvm.lv=$line"
Harald Hoyer e7efcf
     done
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _i _needthin
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
diff --git a/modules.d/90mdraid/module-setup.sh b/modules.d/90mdraid/module-setup.sh
Harald Hoyer e7efcf
index 34aae1e..61483f2 100755
Harald Hoyer e7efcf
--- a/modules.d/90mdraid/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/90mdraid/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     local _rootdev
Harald Hoyer e7efcf
     # No mdadm?  No mdraid support.
Harald Hoyer e7efcf
@@ -26,15 +27,18 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo rootfs-block
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     instmods =drivers/md
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 cmdline() {
Harald Hoyer e7efcf
     local _activated dev line UUID
Harald Hoyer e7efcf
     declare -A _activated
Harald Hoyer e7efcf
@@ -58,6 +62,7 @@ cmdline() {
Harald Hoyer e7efcf
     done
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local rule rule_path
Harald Hoyer e7efcf
     inst_multiple cat
Harald Hoyer e7efcf
diff --git a/modules.d/90multipath/module-setup.sh b/modules.d/90multipath/module-setup.sh
Harald Hoyer e7efcf
index feb58dc..261a957 100755
Harald Hoyer e7efcf
--- a/modules.d/90multipath/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/90multipath/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     local _rootdev
Harald Hoyer e7efcf
     # if there's no multipath binary, no go.
Harald Hoyer e7efcf
@@ -21,12 +22,14 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo rootfs-block
Harald Hoyer e7efcf
     echo dm
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     local _ret
Harald Hoyer e7efcf
     local _arch=$(uname -m)
Harald Hoyer e7efcf
@@ -67,6 +70,7 @@ installkernel() {
Harald Hoyer e7efcf
       find_kernel_modules_by_path drivers/md )  |  mp_mod_filter  |  instmods
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _f
Harald Hoyer e7efcf
     inst_multiple -o  \
Harald Hoyer e7efcf
diff --git a/modules.d/90qemu-net/module-setup.sh b/modules.d/90qemu-net/module-setup.sh
Harald Hoyer e7efcf
index 522a7b5..273d849 100755
Harald Hoyer e7efcf
--- a/modules.d/90qemu-net/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/90qemu-net/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     if type -P systemd-detect-virt >/dev/null 2>&1; then
Harald Hoyer e7efcf
         vm=$(systemd-detect-virt --vm >/dev/null 2>&1)
Harald Hoyer e7efcf
@@ -21,6 +22,7 @@ check() {
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     # qemu specific modules
Harald Hoyer e7efcf
     hostonly='' instmods virtio_net e1000 8139cp pcnet32 e100 ne2k_pci
Harald Hoyer e7efcf
diff --git a/modules.d/90qemu/module-setup.sh b/modules.d/90qemu/module-setup.sh
Harald Hoyer e7efcf
index 0dbf081..b005f6f 100755
Harald Hoyer e7efcf
--- a/modules.d/90qemu/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/90qemu/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     if type -P systemd-detect-virt >/dev/null 2>&1; then
Harald Hoyer e7efcf
         vm=$(systemd-detect-virt --vm >/dev/null 2>&1)
Harald Hoyer e7efcf
@@ -20,6 +21,7 @@ check() {
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
         # qemu specific modules
Harald Hoyer e7efcf
         hostonly='' instmods virtio_blk virtio virtio_ring virtio_pci ata_piix ata_generic pata_acpi cdrom sr_mod ahci virtio_scsi
Harald Hoyer e7efcf
diff --git a/modules.d/91crypt-gpg/module-setup.sh b/modules.d/91crypt-gpg/module-setup.sh
Harald Hoyer e7efcf
index 43a5a00..90c7bc2 100755
Harald Hoyer e7efcf
--- a/modules.d/91crypt-gpg/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/91crypt-gpg/module-setup.sh
Harald Hoyer e7efcf
@@ -3,16 +3,19 @@
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
 # GPG support is optional
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     type -P gpg >/dev/null || return 1
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo crypt
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_multiple gpg
Harald Hoyer e7efcf
     inst "$moddir/crypt-gpg-lib.sh" "/lib/dracut-crypt-gpg-lib.sh"
Harald Hoyer e7efcf
diff --git a/modules.d/91crypt-loop/module-setup.sh b/modules.d/91crypt-loop/module-setup.sh
Harald Hoyer e7efcf
index c14fd45..00052d3 100644
Harald Hoyer e7efcf
--- a/modules.d/91crypt-loop/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/91crypt-loop/module-setup.sh
Harald Hoyer e7efcf
@@ -1,17 +1,21 @@
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
 	type -P losetup >/dev/null || return 1
Harald Hoyer e7efcf
 	
Harald Hoyer e7efcf
 	return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
 	echo crypt
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
 	    instmods loop
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
 	inst_multiple losetup
Harald Hoyer e7efcf
 	inst "$moddir/crypt-loop-lib.sh" "/lib/dracut-crypt-loop-lib.sh"
Harald Hoyer e7efcf
diff --git a/modules.d/95cifs/module-setup.sh b/modules.d/95cifs/module-setup.sh
Harald Hoyer e7efcf
index c17b973..546d2ff 100755
Harald Hoyer e7efcf
--- a/modules.d/95cifs/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/95cifs/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     # If our prerequisites are not met, fail anyways.
Harald Hoyer e7efcf
     type -P mount.cifs >/dev/null || return 1
Harald Hoyer e7efcf
@@ -16,15 +17,18 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     # We depend on network modules being loaded
Harald Hoyer e7efcf
     echo network
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     instmods cifs ipv6
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _i
Harald Hoyer e7efcf
     local _nsslibs
Harald Hoyer e7efcf
diff --git a/modules.d/95dasd/module-setup.sh b/modules.d/95dasd/module-setup.sh
Harald Hoyer e7efcf
index 3b8396d..861df29 100755
Harald Hoyer e7efcf
--- a/modules.d/95dasd/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/95dasd/module-setup.sh
Harald Hoyer e7efcf
@@ -2,20 +2,24 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     local _arch=$(uname -m)
Harald Hoyer e7efcf
     [ "$_arch" = "s390" -o "$_arch" = "s390x" ] || return 1
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     instmods dasd_mod dasd_eckd_mod dasd_fba_mod dasd_diag_mod
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_hook cmdline 30 "$moddir/parse-dasd.sh"
Harald Hoyer e7efcf
     inst_multiple dasdinfo dasdconf.sh normalize_dasd_arg
Harald Hoyer e7efcf
diff --git a/modules.d/95dasd_mod/module-setup.sh b/modules.d/95dasd_mod/module-setup.sh
Harald Hoyer e7efcf
index 9c9eeea..011010d 100755
Harald Hoyer e7efcf
--- a/modules.d/95dasd_mod/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/95dasd_mod/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     local _arch=$(uname -m)
Harald Hoyer e7efcf
     [ "$_arch" = "s390" -o "$_arch" = "s390x" ] || return 1
Harald Hoyer e7efcf
@@ -9,14 +10,17 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     instmods dasd_mod dasd_eckd_mod dasd_fba_mod dasd_diag_mod
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_hook cmdline 31 "$moddir/parse-dasd-mod.sh"
Harald Hoyer e7efcf
     inst_multiple dasd_cio_free grep sed seq
Harald Hoyer e7efcf
diff --git a/modules.d/95debug/module-setup.sh b/modules.d/95debug/module-setup.sh
Harald Hoyer e7efcf
index 1a554c6..88de833 100755
Harald Hoyer e7efcf
--- a/modules.d/95debug/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/95debug/module-setup.sh
Harald Hoyer e7efcf
@@ -2,15 +2,18 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     # do not add this module by default
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_multiple -o ps grep more cat rm strace free showmount \
Harald Hoyer e7efcf
         ping netstat rpcinfo vi scp ping6 ssh \
Harald Hoyer e7efcf
diff --git a/modules.d/95fcoe/module-setup.sh b/modules.d/95fcoe/module-setup.sh
Harald Hoyer e7efcf
index 08ba4ea..7ada2ee 100755
Harald Hoyer e7efcf
--- a/modules.d/95fcoe/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/95fcoe/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     # FIXME
Harald Hoyer e7efcf
     # If hostonly was requested, fail the check until we have some way of
Harald Hoyer e7efcf
@@ -15,15 +16,18 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo network rootfs-block
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     instmods fcoe 8021q edd
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_multiple ip dcbtool fipvlan lldpad readlink
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
diff --git a/modules.d/95fstab-sys/module-setup.sh b/modules.d/95fstab-sys/module-setup.sh
Harald Hoyer e7efcf
index ca66005..c31358c 100755
Harald Hoyer e7efcf
--- a/modules.d/95fstab-sys/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/95fstab-sys/module-setup.sh
Harald Hoyer e7efcf
@@ -2,14 +2,17 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     test -f /etc/fstab.sys || [[ -n $add_fstab  ||  -n $fstab_lines ]]
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo fs-lib
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     [ -f /etc/fstab.sys ] && inst_simple /etc/fstab.sys
Harald Hoyer e7efcf
     inst_hook pre-pivot 00 "$moddir/mount-sys.sh"
Harald Hoyer e7efcf
diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh
Harald Hoyer e7efcf
index 502e834..c8051bd 100755
Harald Hoyer e7efcf
--- a/modules.d/95iscsi/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/95iscsi/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     local _rootdev
Harald Hoyer e7efcf
     # If our prerequisites are not met, fail anyways.
Harald Hoyer e7efcf
@@ -29,10 +30,12 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo network rootfs-block
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     local _arch=$(uname -m)
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
@@ -75,6 +78,7 @@ installkernel() {
Harald Hoyer e7efcf
     | iscsi_module_filter  |  instmods
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_multiple umount iscsistart hostname iscsi-iname
Harald Hoyer e7efcf
     inst_multiple -o iscsiuio
Harald Hoyer e7efcf
diff --git a/modules.d/95nbd/module-setup.sh b/modules.d/95nbd/module-setup.sh
Harald Hoyer e7efcf
index 7b78180..ac30823 100755
Harald Hoyer e7efcf
--- a/modules.d/95nbd/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/95nbd/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     local _rootdev
Harald Hoyer e7efcf
     # If our prerequisites are not met, fail.
Harald Hoyer e7efcf
@@ -20,15 +21,18 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     # We depend on network modules being loaded
Harald Hoyer e7efcf
     echo network rootfs-block
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     instmods nbd
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst nbd-client
Harald Hoyer e7efcf
     inst_hook cmdline 90 "$moddir/parse-nbdroot.sh"
Harald Hoyer e7efcf
diff --git a/modules.d/95nfs/module-setup.sh b/modules.d/95nfs/module-setup.sh
Harald Hoyer e7efcf
index 75beb74..345810a 100755
Harald Hoyer e7efcf
--- a/modules.d/95nfs/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/95nfs/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     # If our prerequisites are not met, fail anyways.
Harald Hoyer e7efcf
     type -P rpcbind >/dev/null || type -P portmap >/dev/null || return 1
Harald Hoyer e7efcf
@@ -19,15 +20,18 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     # We depend on network modules being loaded
Harald Hoyer e7efcf
     echo network
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     instmods nfs sunrpc ipv6 nfsv2 nfsv3 nfsv4 nfs_acl nfs_layout_nfsv41_files
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _i
Harald Hoyer e7efcf
     local _nsslibs
Harald Hoyer e7efcf
diff --git a/modules.d/95resume/module-setup.sh b/modules.d/95resume/module-setup.sh
Harald Hoyer e7efcf
index 518ebf0..b6d2c48 100755
Harald Hoyer e7efcf
--- a/modules.d/95resume/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/95resume/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     # No point trying to support resume, if no swap partition exist
Harald Hoyer e7efcf
     [[ $hostonly ]] || [[ $mount_needs ]] && {
Harald Hoyer e7efcf
@@ -14,6 +15,7 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _bin
Harald Hoyer e7efcf
     # Optional uswsusp support
Harald Hoyer e7efcf
diff --git a/modules.d/95rootfs-block/module-setup.sh b/modules.d/95rootfs-block/module-setup.sh
Harald Hoyer e7efcf
index 7e714eb..7bd0d2f 100755
Harald Hoyer e7efcf
--- a/modules.d/95rootfs-block/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/95rootfs-block/module-setup.sh
Harald Hoyer e7efcf
@@ -2,14 +2,17 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo fs-lib
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 cmdline() {
Harald Hoyer e7efcf
     local dev=/dev/block/$(find_root_block_device)
Harald Hoyer e7efcf
     if [ -e $dev ]; then
Harald Hoyer e7efcf
@@ -19,6 +22,7 @@ cmdline() {
Harald Hoyer e7efcf
     fi
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
     if [[ $hostonly ]]; then
Harald Hoyer e7efcf
diff --git a/modules.d/95ssh-client/module-setup.sh b/modules.d/95ssh-client/module-setup.sh
Harald Hoyer e7efcf
index 66e5307..1f2b733 100755
Harald Hoyer e7efcf
--- a/modules.d/95ssh-client/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/95ssh-client/module-setup.sh
Harald Hoyer e7efcf
@@ -4,6 +4,7 @@
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
 # fixme: assume user is root
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     # If our prerequisites are not met, fail.
Harald Hoyer e7efcf
     type -P ssh >/dev/null || return 1
Harald Hoyer e7efcf
@@ -20,6 +21,7 @@ check() {
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     # We depend on network modules being loaded
Harald Hoyer e7efcf
     echo network
Harald Hoyer e7efcf
@@ -46,6 +48,7 @@ inst_sshenv()
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_multiple ssh scp
Harald Hoyer e7efcf
     inst_sshenv
Harald Hoyer e7efcf
diff --git a/modules.d/95terminfo/module-setup.sh b/modules.d/95terminfo/module-setup.sh
Harald Hoyer e7efcf
index 4656cd3..6848cb9 100755
Harald Hoyer e7efcf
--- a/modules.d/95terminfo/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/95terminfo/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _terminfodir
Harald Hoyer e7efcf
     # terminfo bits make things work better if you fall into interactive mode
Harald Hoyer e7efcf
diff --git a/modules.d/95udev-rules/module-setup.sh b/modules.d/95udev-rules/module-setup.sh
Harald Hoyer e7efcf
index 2cdcc1b..88c3da2 100755
Harald Hoyer e7efcf
--- a/modules.d/95udev-rules/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/95udev-rules/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _i
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
diff --git a/modules.d/95virtfs/module-setup.sh b/modules.d/95virtfs/module-setup.sh
Harald Hoyer e7efcf
index 12bd354..7d6d0f1 100755
Harald Hoyer e7efcf
--- a/modules.d/95virtfs/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/95virtfs/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     [[ $hostonly ]] || [[ $mount_needs ]] && {
Harald Hoyer e7efcf
         for fs in ${host_fs_types[@]}; do
Harald Hoyer e7efcf
@@ -27,14 +28,17 @@ check() {
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     instmods 9p 9pnet_virtio virtio_pci
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_hook cmdline 95 "$moddir/parse-virtfs.sh"
Harald Hoyer e7efcf
     inst_hook mount 99 "$moddir/mount-virtfs.sh"
Harald Hoyer e7efcf
diff --git a/modules.d/95zfcp/module-setup.sh b/modules.d/95zfcp/module-setup.sh
Harald Hoyer e7efcf
index 9906695..5d9b506 100755
Harald Hoyer e7efcf
--- a/modules.d/95zfcp/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/95zfcp/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     arch=$(uname -m)
Harald Hoyer e7efcf
     [ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1
Harald Hoyer e7efcf
@@ -9,6 +10,7 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     arch=$(uname -m)
Harald Hoyer e7efcf
     [ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1
Harald Hoyer e7efcf
@@ -16,10 +18,12 @@ depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     instmods zfcp
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_hook cmdline 30 "$moddir/parse-zfcp.sh"
Harald Hoyer e7efcf
     inst_multiple zfcp_cio_free grep sed seq
Harald Hoyer e7efcf
diff --git a/modules.d/95znet/module-setup.sh b/modules.d/95znet/module-setup.sh
Harald Hoyer e7efcf
index 16f8493..4c211a9 100755
Harald Hoyer e7efcf
--- a/modules.d/95znet/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/95znet/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     arch=$(uname -m)
Harald Hoyer e7efcf
     [ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1
Harald Hoyer e7efcf
@@ -9,14 +10,17 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     instmods ctcm lcs qeth qeth_l2 qeth_l3
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_hook cmdline 30 "$moddir/parse-ccw.sh"
Harald Hoyer e7efcf
     inst_rules 81-ccw.rules
Harald Hoyer e7efcf
diff --git a/modules.d/96securityfs/module-setup.sh b/modules.d/96securityfs/module-setup.sh
Harald Hoyer e7efcf
index fbe3aa3..d4e6118 100755
Harald Hoyer e7efcf
--- a/modules.d/96securityfs/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/96securityfs/module-setup.sh
Harald Hoyer e7efcf
@@ -2,14 +2,17 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_hook cmdline 60 "$moddir/securityfs.sh"
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
diff --git a/modules.d/97biosdevname/module-setup.sh b/modules.d/97biosdevname/module-setup.sh
Harald Hoyer e7efcf
index 4a0b4f4..b51c472 100755
Harald Hoyer e7efcf
--- a/modules.d/97biosdevname/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/97biosdevname/module-setup.sh
Harald Hoyer e7efcf
@@ -2,16 +2,19 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     [[ "$mount_needs" ]] && return 1
Harald Hoyer e7efcf
     type -P biosdevname >/dev/null || return 1
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_multiple biosdevname
Harald Hoyer e7efcf
     inst_rules 71-biosdevname.rules
Harald Hoyer e7efcf
diff --git a/modules.d/97masterkey/module-setup.sh b/modules.d/97masterkey/module-setup.sh
Harald Hoyer e7efcf
index a94c4f5..e6e3690 100755
Harald Hoyer e7efcf
--- a/modules.d/97masterkey/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/97masterkey/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     [[ $hostonly ]] && {
Harald Hoyer e7efcf
         [ -x "/bin/keyctl" ] || return 1
Harald Hoyer e7efcf
@@ -10,14 +11,17 @@ check() {
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     instmods trusted encrypted
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_multiple keyctl uname
Harald Hoyer e7efcf
     inst_hook pre-pivot 60 "$moddir/masterkey.sh"
Harald Hoyer e7efcf
diff --git a/modules.d/98ecryptfs/module-setup.sh b/modules.d/98ecryptfs/module-setup.sh
Harald Hoyer e7efcf
index b0d6754..e12fad4 100755
Harald Hoyer e7efcf
--- a/modules.d/98ecryptfs/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/98ecryptfs/module-setup.sh
Harald Hoyer e7efcf
@@ -2,19 +2,23 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo masterkey
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     instmods ecryptfs
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_hook pre-pivot 63 "$moddir/ecryptfs-mount.sh"
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
diff --git a/modules.d/98integrity/module-setup.sh b/modules.d/98integrity/module-setup.sh
Harald Hoyer e7efcf
index ff1b4aa..f8f30ed 100755
Harald Hoyer e7efcf
--- a/modules.d/98integrity/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/98integrity/module-setup.sh
Harald Hoyer e7efcf
@@ -2,15 +2,18 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo masterkey securityfs selinux
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_hook pre-pivot 61 "$moddir/evm-enable.sh"
Harald Hoyer e7efcf
     inst_hook pre-pivot 62 "$moddir/ima-policy-load.sh"
Harald Hoyer e7efcf
diff --git a/modules.d/98pollcdrom/module-setup.sh b/modules.d/98pollcdrom/module-setup.sh
Harald Hoyer e7efcf
index e80ae16..94ff952 100755
Harald Hoyer e7efcf
--- a/modules.d/98pollcdrom/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/98pollcdrom/module-setup.sh
Harald Hoyer e7efcf
@@ -2,14 +2,17 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_hook initqueue/settled 99 "$moddir/pollcdrom.sh"
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
diff --git a/modules.d/98selinux/module-setup.sh b/modules.d/98selinux/module-setup.sh
Harald Hoyer e7efcf
index 4d5147b..90bf34b 100755
Harald Hoyer e7efcf
--- a/modules.d/98selinux/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/98selinux/module-setup.sh
Harald Hoyer e7efcf
@@ -2,14 +2,17 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_hook pre-pivot 50 "$moddir/selinux-loadpolicy.sh"
Harald Hoyer e7efcf
     inst_multiple setenforce
Harald Hoyer e7efcf
diff --git a/modules.d/98syslog/module-setup.sh b/modules.d/98syslog/module-setup.sh
Harald Hoyer e7efcf
index daa9021..b8494c8 100755
Harald Hoyer e7efcf
--- a/modules.d/98syslog/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/98syslog/module-setup.sh
Harald Hoyer e7efcf
@@ -2,15 +2,18 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     # do not add this module by default
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _i
Harald Hoyer e7efcf
     local _installs
Harald Hoyer e7efcf
diff --git a/modules.d/98systemd/module-setup.sh b/modules.d/98systemd/module-setup.sh
Harald Hoyer e7efcf
index a5ac2a5..748e25b 100755
Harald Hoyer e7efcf
--- a/modules.d/98systemd/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/98systemd/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     [[ $mount_needs ]] && return 1
Harald Hoyer e7efcf
     if [[ -x $systemdutildir/systemd ]]; then
Harald Hoyer e7efcf
@@ -13,10 +14,12 @@ check() {
Harald Hoyer e7efcf
     return 1
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _mods
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
diff --git a/modules.d/98usrmount/module-setup.sh b/modules.d/98usrmount/module-setup.sh
Harald Hoyer e7efcf
index a668069..1af789f 100755
Harald Hoyer e7efcf
--- a/modules.d/98usrmount/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/98usrmount/module-setup.sh
Harald Hoyer e7efcf
@@ -2,6 +2,7 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     local _init
Harald Hoyer e7efcf
     [[ $mount_needs ]] && return 1
Harald Hoyer e7efcf
@@ -10,10 +11,12 @@ check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo 'fs-lib'
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     if ! dracut_module_included "systemd"; then
Harald Hoyer e7efcf
         inst_hook pre-pivot 50 "$moddir/mount-usr.sh"
Harald Hoyer e7efcf
diff --git a/modules.d/99base/module-setup.sh b/modules.d/99base/module-setup.sh
Harald Hoyer e7efcf
index d33a0fb..e53cf2e 100755
Harald Hoyer e7efcf
--- a/modules.d/99base/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/99base/module-setup.sh
Harald Hoyer e7efcf
@@ -2,15 +2,18 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo udev-rules
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _d
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
diff --git a/modules.d/99fs-lib/module-setup.sh b/modules.d/99fs-lib/module-setup.sh
Harald Hoyer e7efcf
index c9c88b7..7979bab 100755
Harald Hoyer e7efcf
--- a/modules.d/99fs-lib/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/99fs-lib/module-setup.sh
Harald Hoyer e7efcf
@@ -2,10 +2,12 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
@@ -44,6 +46,7 @@ include_fs_helper_modules() {
Harald Hoyer e7efcf
     esac
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 installkernel() {
Harald Hoyer e7efcf
     # xfs and btrfs needs crc32c...
Harald Hoyer e7efcf
     if [[ $hostonly ]]; then
Harald Hoyer e7efcf
@@ -54,6 +57,7 @@ installkernel() {
Harald Hoyer e7efcf
     fi
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _helpers
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
diff --git a/modules.d/99img-lib/module-setup.sh b/modules.d/99img-lib/module-setup.sh
Harald Hoyer e7efcf
index 28bfc2a..2c3c992 100755
Harald Hoyer e7efcf
--- a/modules.d/99img-lib/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/99img-lib/module-setup.sh
Harald Hoyer e7efcf
@@ -1,6 +1,7 @@
Harald Hoyer e7efcf
 #!/bin/bash
Harald Hoyer e7efcf
 # module-setup for img-lib
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     for cmd in tar gzip dd; do
Harald Hoyer e7efcf
         command -v $cmd >/dev/null || return 1
Harald Hoyer e7efcf
@@ -8,10 +9,12 @@ check() {
Harald Hoyer e7efcf
     return 255
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     inst_multiple tar gzip dd bash
Harald Hoyer e7efcf
     # TODO: make this conditional on a cmdline flag / config option
Harald Hoyer e7efcf
diff --git a/modules.d/99shutdown/module-setup.sh b/modules.d/99shutdown/module-setup.sh
Harald Hoyer e7efcf
index 5361936..c09d886 100755
Harald Hoyer e7efcf
--- a/modules.d/99shutdown/module-setup.sh
Harald Hoyer e7efcf
+++ b/modules.d/99shutdown/module-setup.sh
Harald Hoyer e7efcf
@@ -2,15 +2,18 @@
Harald Hoyer e7efcf
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer e7efcf
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 check() {
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 depends() {
Harald Hoyer e7efcf
     echo base
Harald Hoyer e7efcf
     return 0
Harald Hoyer e7efcf
 }
Harald Hoyer e7efcf
 
Harald Hoyer e7efcf
+# called by dracut
Harald Hoyer e7efcf
 install() {
Harald Hoyer e7efcf
     local _d
Harald Hoyer e7efcf
     inst_multiple umount poweroff reboot halt losetup