]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
*/module-setup.sh: add comments for dracut called functions
authorHarald Hoyer <harald@redhat.com>
Tue, 8 Oct 2013 08:37:56 +0000 (10:37 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 8 Oct 2013 08:37:56 +0000 (10:37 +0200)
65 files changed:
modules.d/00bash/module-setup.sh
modules.d/00bootchart/module-setup.sh
modules.d/00dash/module-setup.sh
modules.d/00systemd-bootchart/module-setup.sh
modules.d/01fips/module-setup.sh
modules.d/02caps/module-setup.sh
modules.d/02fips-aesni/module-setup.sh
modules.d/03modsign/module-setup.sh
modules.d/03rescue/module-setup.sh
modules.d/04watchdog/module-setup.sh
modules.d/05busybox/module-setup.sh
modules.d/10i18n/module-setup.sh
modules.d/30convertfs/module-setup.sh
modules.d/40network/module-setup.sh
modules.d/45ifcfg/module-setup.sh
modules.d/45url-lib/module-setup.sh
modules.d/50drm/module-setup.sh
modules.d/50gensplash/module-setup.sh
modules.d/50plymouth/module-setup.sh
modules.d/80cms/module-setup.sh
modules.d/90btrfs/module-setup.sh
modules.d/90crypt/module-setup.sh
modules.d/90dm/module-setup.sh
modules.d/90dmraid/module-setup.sh
modules.d/90dmsquash-live/module-setup.sh
modules.d/90kernel-modules/module-setup.sh
modules.d/90livenet/module-setup.sh
modules.d/90lvm/module-setup.sh
modules.d/90mdraid/module-setup.sh
modules.d/90multipath/module-setup.sh
modules.d/90qemu-net/module-setup.sh
modules.d/90qemu/module-setup.sh
modules.d/91crypt-gpg/module-setup.sh
modules.d/91crypt-loop/module-setup.sh
modules.d/95cifs/module-setup.sh
modules.d/95dasd/module-setup.sh
modules.d/95dasd_mod/module-setup.sh
modules.d/95debug/module-setup.sh
modules.d/95fcoe/module-setup.sh
modules.d/95fstab-sys/module-setup.sh
modules.d/95iscsi/module-setup.sh
modules.d/95nbd/module-setup.sh
modules.d/95nfs/module-setup.sh
modules.d/95resume/module-setup.sh
modules.d/95rootfs-block/module-setup.sh
modules.d/95ssh-client/module-setup.sh
modules.d/95terminfo/module-setup.sh
modules.d/95udev-rules/module-setup.sh
modules.d/95virtfs/module-setup.sh
modules.d/95zfcp/module-setup.sh
modules.d/95znet/module-setup.sh
modules.d/96securityfs/module-setup.sh
modules.d/97biosdevname/module-setup.sh
modules.d/97masterkey/module-setup.sh
modules.d/98ecryptfs/module-setup.sh
modules.d/98integrity/module-setup.sh
modules.d/98pollcdrom/module-setup.sh
modules.d/98selinux/module-setup.sh
modules.d/98syslog/module-setup.sh
modules.d/98systemd/module-setup.sh
modules.d/98usrmount/module-setup.sh
modules.d/99base/module-setup.sh
modules.d/99fs-lib/module-setup.sh
modules.d/99img-lib/module-setup.sh
modules.d/99shutdown/module-setup.sh

index e874e73d90f616da9eb783e1f00bd40e56fb8871..f599940158a3f5b5ae4b434e4198b55e376b48bf 100755 (executable)
@@ -2,14 +2,17 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     [ -x /bin/bash ]
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     # If another shell is already installed, do not use bash
     [[ -x $initdir/bin/sh ]] && return
index 72b60633814171e89b42794bfd243ade83f2a227..107ee5b84c99f039fdba93a7180d220e05d83926 100755 (executable)
@@ -2,16 +2,19 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     [[ "$mount_needs" ]] && return 1
     [ -x /sbin/bootchartd ] || return 1
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     inst_symlink /init /sbin/init
     inst_dir /lib/bootchart/tmpfs
index dfd4d7bf09f25a41c232b3b427e9c32e981f40ac..47f7b03116d44e4ef75b77183ed58047d9cc9b76 100755 (executable)
@@ -2,14 +2,17 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     [ -x /bin/dash ]
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     # If another shell is already installed, do not use dash
     [[ -x $initdir/bin/sh ]] && return
index 3eb4de1e97220615ff6c58e0d41bee5979d0ed7a..a897cef5144ec1ecad8e008c954e2f9c5fd678e2 100755 (executable)
@@ -2,16 +2,19 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     [[ "$mount_needs" ]] && return 1
     [ -x $systemdutildir/systemd-bootchart ] || return 1
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     inst_symlink /init /sbin/init
     inst_multiple $systemdutildir/systemd-bootchart
index d08e3f74e7627b4db6d20c7f0f4df8ba4b30b7f3..64932901d752a18f3d4d7f90c932bbe8f3c85084 100755 (executable)
@@ -2,14 +2,17 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 installkernel() {
     local _fipsmodules _mod
     _fipsmodules="aead aes_generic aes-x86_64 ansi_cprng arc4 blowfish camellia cast6 cbc ccm "
@@ -28,6 +31,7 @@ installkernel() {
     done
 }
 
+# called by dracut
 install() {
     local _dir
     inst_hook pre-trigger 01 "$moddir/fips-boot.sh"
index c9d94eeb2b322451056417e167e8dd62a9c9f0cc..601918851eba73d1ab08a4d47d6512b89932ba70 100755 (executable)
@@ -2,14 +2,17 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     type -P capsh >/dev/null 2>&1
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     inst_hook pre-pivot 00 "$moddir/caps.sh"
     inst $(type -P capsh 2>/dev/null) /usr/sbin/capsh
index fb4010df602c0d59861d582656630cb66733c82f..002b7d47b71b8c902ef91965c56e5afd99b6d967 100755 (executable)
@@ -2,14 +2,17 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 installkernel() {
     local _fipsmodules _mod
     _fipsmodules="aesni-intel ghash_clmulni_intel"
@@ -24,6 +27,7 @@ installkernel() {
     done
 }
 
+# called by dracut
 install() {
     return 0
 }
index 730cd86e174184734d45f41156b6956d2aa3d401..5dfd90c95ebbf6a4f86aa2203c098f46f136a0eb 100644 (file)
@@ -7,6 +7,7 @@
 # Copyright 2013 Red Hat, Inc.
 # Peter Jones <pjones@redhat.com>
 
+# called by dracut
 check() {
     [[ -x /usr/bin/keyctl ]] || return 1
 
@@ -20,10 +21,12 @@ check() {
     return 0
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     inst_dir /lib/modules/keys
     inst_binary /usr/bin/keyctl
index 72a42876170195427389ed0f5ac3698ef82f3230..289c9348838395152bb2dbfe7012c637d55383c3 100755 (executable)
@@ -2,15 +2,18 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     # do not add this module by default
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     inst_multiple -o ps grep more cat rm strace free showmount \
         ping netstat rpcinfo vi scp ping6 ssh \
index b7725ef743330fce32fd3163b4a9463da0f5dc68..44dce61fd4b6c7d84480f9d2279cfd45e1f7ced3 100755 (executable)
@@ -2,14 +2,17 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     inst_hook cmdline   00 "$moddir/watchdog.sh"
     inst_hook cmdline   50 "$moddir/watchdog.sh"
index edcc8daa848f5951d19c3da8811a893a69ec97d6..6e508a66ada66efe715718c17935ee044cc9dcad 100755 (executable)
@@ -2,16 +2,19 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     type -P busybox >/dev/null || return 1
 
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     local _i _progs _path _busybox
     _busybox=$(type -P busybox)
index 2a8372804cdff004bd51c2093afe41ab9a3c600d..0741c649ba0cb45fa50118c3d40a50be53594a84 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     [[ "$mount_needs" ]] && return 1
 
@@ -12,10 +13,12 @@ check() {
     return 0
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     if dracut_module_included "systemd"; then
         [[ -f /etc/vconsole.conf ]] || return 0
index 9efd5dd9297b821c7af897d45e5868d23a2b8815..1e73455bc196dc4b42842d256ed15deab85a64db 100755 (executable)
@@ -2,15 +2,18 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     [[ $mount_needs ]] && return 1
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     inst_multiple bash find ldconfig mv rm cp ln
     inst_hook pre-pivot 99 "$moddir/do-convertfs.sh"
index d2833d0f205be2cd5dba9bcf7b7a0c322ba6e902..8a2898cc6ba7c1e8b598f252373760170debf058 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     local _program
 
@@ -15,10 +16,12 @@ check() {
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 installkernel() {
     # Include wired net drivers, excluding wireless
 
@@ -67,6 +70,7 @@ installkernel() {
     instmods =drivers/net/phy ecb arc4 bridge stp llc ipv6 bonding 8021q af_packet virtio_net =drivers/net/team
 }
 
+# called by dracut
 install() {
     local _arch _i _dir
     inst_multiple ip arping dhclient sed
index ce53e5ed508918a258c0e6ac0168bcaf1660ead1..c407f45c0bf3bed6a8ba994fad5829a2de86cffe 100755 (executable)
@@ -2,15 +2,18 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     [[ -d /etc/sysconfig/network-scripts ]] && return 0
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     inst_hook pre-pivot 85 "$moddir/write-ifcfg.sh"
 }
index b5cf36f28ba12582015607a661a06b432ac76c3f..1ed97acba3652363674d581f27ba58ef28d3b599 100755 (executable)
@@ -1,16 +1,19 @@
 #!/bin/bash
 # module-setup for url-lib
 
+# called by dracut
 check() {
     command -v curl >/dev/null || return 1
     return 255
 }
 
+# called by dracut
 depends() {
     echo network
     return 0
 }
 
+# called by dracut
 install() {
     local _dir _crt _found _lib
     inst_simple "$moddir/url-lib.sh" "/lib/url-lib.sh"
index bf33c5b728bc4cc90ac4291b7bc8ed3ecbed466b..e25fc9f5ceeee924d949d23721cf305386e4d41c 100644 (file)
@@ -2,14 +2,17 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 installkernel() {
     local _modname
     # Include KMS capable drm drivers
index cfee55acc57c2c721397b0dab71745f7603e6fa5..64e81620aff2387d3fb1f61b9a3113b4cfa3805d 100755 (executable)
@@ -2,16 +2,19 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     # TODO: splash_geninitramfs
     # TODO: /usr/share/splashutils/initrd.splash
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     local _opts
     local _splash_theme
index e0e69367c1ea45a4d50998078429d130a737981c..136092469234c3ed7751b1f9b432d7e4b067b372 100755 (executable)
@@ -2,15 +2,18 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     [[ "$mount_needs" ]] && return 1
     type -P plymouthd >/dev/null && type -P plymouth >/dev/null
 }
 
+# called by dracut
 depends() {
     echo drm
 }
 
+# called by dracut
 install() {
     if grep -q nash /usr/libexec/plymouth/plymouth-populate-initrd \
         || [ ! -x /usr/libexec/plymouth/plymouth-populate-initrd ]; then
index c99f236c798e288e2117d707aacd32e409d4494b..0b921d841c2929576c0185686c197fc1b44e1415 100755 (executable)
@@ -2,12 +2,14 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     arch=$(uname -m)
     [ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1
     return 255
 }
 
+# called by dracut
 depends() {
     arch=$(uname -m)
     [ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1
@@ -15,10 +17,12 @@ depends() {
     return 0
 }
 
+# called by dracut
 installkernel() {
     instmods zfcp
 }
 
+# called by dracut
 install() {
     inst_hook pre-trigger 30 "$moddir/cmssetup.sh"
     inst_hook pre-pivot 95 "$moddir/cms-write-ifcfg.sh"
index a2805946230e103cb9356ba412c2de32a880cb43..80a538fd574469c2455861af9a8a473965dcc665 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     local _rootdev
     # if we don't have btrfs installed on the host system,
@@ -18,15 +19,18 @@ check() {
     return 0
 }
 
+# called by dracut
 depends() {
     echo udev-rules
     return 0
 }
 
+# called by dracut
 installkernel() {
     instmods btrfs
 }
 
+# called by dracut
 install() {
     if ! inst_rules 64-btrfs.rules; then
         inst_rules "$moddir/80-btrfs.rules"
index 185839152a58e75b23e96ac6a38471eb3b82066a..7d18e33e5d9971c940b31a3597d5dc3eb90b5994 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     local _rootdev
     # if cryptsetup is not installed, then we cannot support encrypted devices.
@@ -17,15 +18,18 @@ check() {
     return 0
 }
 
+# called by dracut
 depends() {
     echo dm rootfs-block
     return 0
 }
 
+# called by dracut
 installkernel() {
     instmods dm_crypt =crypto
 }
 
+# called by dracut
 cmdline() {
     local dev UUID
     for dev in "${!host_fs_types[@]}"; do
@@ -44,6 +48,7 @@ cmdline() {
     done
 }
 
+# called by dracut
 install() {
 
     cmdline >> "${initdir}/etc/cmdline.d/90crypt.conf"
index fa38e8567d3decaf7ccf22f63bc6c323d357a765..bafad67a9d4ae60bb034d7c4e8e2961a58f2f589 100755 (executable)
@@ -2,20 +2,24 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     type -P dmsetup >/dev/null || return 1
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 installkernel() {
     instmods =drivers/md
     instmods dm_mod
 }
 
+# called by dracut
 install() {
     modinfo -k $kernel dm_mod >/dev/null 2>&1 && \
         inst_hook pre-udev 30 "$moddir/dm-pre-udev.sh"
index 11181cf5e84d5747082fb9010f2516c4f0c3d00e..a9e27a66a41e4fe1f34016bbdbcc98fe82610df6 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     local _rootdev
     # if we don't have dmraid installed on the host system, no point
@@ -27,11 +28,13 @@ check() {
     return 0
 }
 
+# called by dracut
 depends() {
     echo dm rootfs-block
     return 0
 }
 
+# called by dracut
 cmdline() {
     local _activated
     declare -A _activated
@@ -58,6 +61,7 @@ cmdline() {
     done
 }
 
+# called by dracut
 install() {
     local _i
 
index c6d1f9d550a4ea8e7d7435e9103173d027d736a6..851fd1abebbdb36a2d10ea5366b4adf18f6a17d1 100755 (executable)
@@ -2,12 +2,14 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     # a live host-only image doesn't really make a lot of sense
     [[ $hostonly ]] && return 1
     return 255
 }
 
+# called by dracut
 depends() {
     # if dmsetup is not installed, then we cannot support fedora/red hat
     # style live images
@@ -15,10 +17,12 @@ depends() {
     return 0
 }
 
+# called by dracut
 installkernel() {
     instmods squashfs loop iso9660
 }
 
+# called by dracut
 install() {
     inst_multiple umount dmsetup blkid dd losetup grep blockdev
     inst_multiple -o checkisomd5
index e7e2ca07f6c0be52ff537b76ded25af9de8726c2..f6d1c3dec0cff0dfbbf8eac0ef46d8c198421810 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 installkernel() {
     if [[ -z $drivers ]]; then
         block_module_filter() {
@@ -73,6 +74,7 @@ installkernel() {
     :
 }
 
+# called by dracut
 install() {
     inst_multiple -o /lib/modprobe.d/*.conf
     [[ $hostonly ]] && inst_multiple -o /etc/modprobe.d/*.conf /etc/modprobe.conf
index be7832b2c17a4427ac8b2fb2a3e44b4854bf5186..f1e757e786a1f0d54c741779711d95e5c8ffe7b5 100755 (executable)
@@ -1,15 +1,18 @@
 #!/bin/bash
 # module-setup.sh for livenet
 
+# called by dracut
 check() {
     return 255
 }
 
+# called by dracut
 depends() {
     echo network url-lib dmsquash-live img-lib
     return 0
 }
 
+# called by dracut
 install() {
     inst_hook cmdline 29 "$moddir/parse-livenet.sh"
     inst_hook initqueue/online 95 "$moddir/fetch-liveupdate.sh"
index 514addc1daafd63d669a99a2801e68f75037c495..f8b598df5dc9fa7f3b35f176f2663cb800c8d7df 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     # No point trying to support lvm if the binaries are missing
     type -P lvm >/dev/null || return 1
@@ -16,6 +17,7 @@ check() {
     return 0
 }
 
+# called by dracut
 depends() {
     # We depend on dm_mod being loaded
     echo rootfs-block dm
@@ -41,12 +43,14 @@ get_host_lvs() {
     done
 }
 
+# called by dracut
 cmdline() {
     get_host_lvs | while read line; do
         printf " rd.lvm.lv=$line"
     done
 }
 
+# called by dracut
 install() {
     local _i _needthin
 
index 34aae1e38c5b9fb1947805f080a272626dbcd299..61483f2500dc5ef9f249c972953add9cf40057bc 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     local _rootdev
     # No mdadm?  No mdraid support.
@@ -26,15 +27,18 @@ check() {
     return 0
 }
 
+# called by dracut
 depends() {
     echo rootfs-block
     return 0
 }
 
+# called by dracut
 installkernel() {
     instmods =drivers/md
 }
 
+# called by dracut
 cmdline() {
     local _activated dev line UUID
     declare -A _activated
@@ -58,6 +62,7 @@ cmdline() {
     done
 }
 
+# called by dracut
 install() {
     local rule rule_path
     inst_multiple cat
index feb58dcd3c851816eb0ef80f60d968115f4f9cad..261a957e4f21e0104245dad7f0f559f3e4125bd1 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     local _rootdev
     # if there's no multipath binary, no go.
@@ -21,12 +22,14 @@ check() {
     return 0
 }
 
+# called by dracut
 depends() {
     echo rootfs-block
     echo dm
     return 0
 }
 
+# called by dracut
 installkernel() {
     local _ret
     local _arch=$(uname -m)
@@ -67,6 +70,7 @@ installkernel() {
       find_kernel_modules_by_path drivers/md )  |  mp_mod_filter  |  instmods
 }
 
+# called by dracut
 install() {
     local _f
     inst_multiple -o  \
index 522a7b5a57dacb1a93cd4246841e2dc128942c8c..273d8490ba8ae8bde53467bf40506c26fee87fe4 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     if type -P systemd-detect-virt >/dev/null 2>&1; then
         vm=$(systemd-detect-virt --vm >/dev/null 2>&1)
@@ -21,6 +22,7 @@ check() {
     return 255
 }
 
+# called by dracut
 installkernel() {
     # qemu specific modules
     hostonly='' instmods virtio_net e1000 8139cp pcnet32 e100 ne2k_pci
index 0dbf0818dcbacc52c2c4da97300f04314146608a..b005f6fd4990c39e991cc102595186c34855719c 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     if type -P systemd-detect-virt >/dev/null 2>&1; then
         vm=$(systemd-detect-virt --vm >/dev/null 2>&1)
@@ -20,6 +21,7 @@ check() {
     return 255
 }
 
+# called by dracut
 installkernel() {
         # qemu specific modules
         hostonly='' instmods virtio_blk virtio virtio_ring virtio_pci ata_piix ata_generic pata_acpi cdrom sr_mod ahci virtio_scsi
index 43a5a00089c0186a459f2da148cd40c954227161..90c7bc2e83631bb9d4fb2c37ffb21d3c6bed927d 100755 (executable)
@@ -3,16 +3,19 @@
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
 # GPG support is optional
+# called by dracut
 check() {
     type -P gpg >/dev/null || return 1
 
     return 255
 }
 
+# called by dracut
 depends() {
     echo crypt
 }
 
+# called by dracut
 install() {
     inst_multiple gpg
     inst "$moddir/crypt-gpg-lib.sh" "/lib/dracut-crypt-gpg-lib.sh"
index c14fd45ae81caa82ec268d9bb9e07fe4f8e0972b..00052d3b71bede9aa2588f45dc21125ab907ae92 100644 (file)
@@ -1,17 +1,21 @@
+# called by dracut
 check() {
        type -P losetup >/dev/null || return 1
        
        return 255
 }
 
+# called by dracut
 depends() {
        echo crypt
 }
 
+# called by dracut
 installkernel() {
            instmods loop
 }
 
+# called by dracut
 install() {
        inst_multiple losetup
        inst "$moddir/crypt-loop-lib.sh" "/lib/dracut-crypt-loop-lib.sh"
index c17b973a825a7dd5d7c10af54a21f307bec79dd1..546d2ff00e2337c344d98c5e50e60ab1255adbb1 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     # If our prerequisites are not met, fail anyways.
     type -P mount.cifs >/dev/null || return 1
@@ -16,15 +17,18 @@ check() {
     return 0
 }
 
+# called by dracut
 depends() {
     # We depend on network modules being loaded
     echo network
 }
 
+# called by dracut
 installkernel() {
     instmods cifs ipv6
 }
 
+# called by dracut
 install() {
     local _i
     local _nsslibs
index 3b8396dba56fe73a9a970fc5975b03bc64144d51..861df296261758cca3092094020bab0128d4594e 100755 (executable)
@@ -2,20 +2,24 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     local _arch=$(uname -m)
     [ "$_arch" = "s390" -o "$_arch" = "s390x" ] || return 1
     return 0
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 installkernel() {
     instmods dasd_mod dasd_eckd_mod dasd_fba_mod dasd_diag_mod
 }
 
+# called by dracut
 install() {
     inst_hook cmdline 30 "$moddir/parse-dasd.sh"
     inst_multiple dasdinfo dasdconf.sh normalize_dasd_arg
index 9c9eeead640b2f6b135af0e561553db7fe3ca79d..011010df91be6643697b37749738b6798efa10cc 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     local _arch=$(uname -m)
     [ "$_arch" = "s390" -o "$_arch" = "s390x" ] || return 1
@@ -9,14 +10,17 @@ check() {
     return 0
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 installkernel() {
     instmods dasd_mod dasd_eckd_mod dasd_fba_mod dasd_diag_mod
 }
 
+# called by dracut
 install() {
     inst_hook cmdline 31 "$moddir/parse-dasd-mod.sh"
     inst_multiple dasd_cio_free grep sed seq
index 1a554c68ac3916796f1eeea239b3f483ebbd2a87..88de8334a8fa48bdebc1974105612d784a477397 100755 (executable)
@@ -2,15 +2,18 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     # do not add this module by default
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     inst_multiple -o ps grep more cat rm strace free showmount \
         ping netstat rpcinfo vi scp ping6 ssh \
index 08ba4eac31817e741b8edc284d88400010a37625..7ada2ee8c34bc56ca438c81ecbe2df0ca783e14f 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     # FIXME
     # If hostonly was requested, fail the check until we have some way of
@@ -15,15 +16,18 @@ check() {
     return 0
 }
 
+# called by dracut
 depends() {
     echo network rootfs-block
     return 0
 }
 
+# called by dracut
 installkernel() {
     instmods fcoe 8021q edd
 }
 
+# called by dracut
 install() {
     inst_multiple ip dcbtool fipvlan lldpad readlink
 
index ca6600540aea86d804d6ab7127200227828c66ab..c31358c1d500881c93b69d0e7976b9a2212c72ee 100755 (executable)
@@ -2,14 +2,17 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     test -f /etc/fstab.sys || [[ -n $add_fstab  ||  -n $fstab_lines ]]
 }
 
+# called by dracut
 depends() {
     echo fs-lib
 }
 
+# called by dracut
 install() {
     [ -f /etc/fstab.sys ] && inst_simple /etc/fstab.sys
     inst_hook pre-pivot 00 "$moddir/mount-sys.sh"
index 502e83451e767c1cef1d7e8fa7e312347138962d..c8051bd56b796314503f29131c8ed57e7b1368ba 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     local _rootdev
     # If our prerequisites are not met, fail anyways.
@@ -29,10 +30,12 @@ check() {
     return 0
 }
 
+# called by dracut
 depends() {
     echo network rootfs-block
 }
 
+# called by dracut
 installkernel() {
     local _arch=$(uname -m)
 
@@ -75,6 +78,7 @@ installkernel() {
     | iscsi_module_filter  |  instmods
 }
 
+# called by dracut
 install() {
     inst_multiple umount iscsistart hostname iscsi-iname
     inst_multiple -o iscsiuio
index 7b78180386c4daa1caf0613e9fa539025ce5c286..ac308238a49df3a028366f68882cf4ba2e853e2d 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     local _rootdev
     # If our prerequisites are not met, fail.
@@ -20,15 +21,18 @@ check() {
     return 0
 }
 
+# called by dracut
 depends() {
     # We depend on network modules being loaded
     echo network rootfs-block
 }
 
+# called by dracut
 installkernel() {
     instmods nbd
 }
 
+# called by dracut
 install() {
     inst nbd-client
     inst_hook cmdline 90 "$moddir/parse-nbdroot.sh"
index 75beb746d3a1d8603305122a4624aa004bf6fbf3..345810a3ebe0a165e07015696f8d580a23e6ca40 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     # If our prerequisites are not met, fail anyways.
     type -P rpcbind >/dev/null || type -P portmap >/dev/null || return 1
@@ -19,15 +20,18 @@ check() {
     return 0
 }
 
+# called by dracut
 depends() {
     # We depend on network modules being loaded
     echo network
 }
 
+# called by dracut
 installkernel() {
     instmods nfs sunrpc ipv6 nfsv2 nfsv3 nfsv4 nfs_acl nfs_layout_nfsv41_files
 }
 
+# called by dracut
 install() {
     local _i
     local _nsslibs
index 518ebf06b461e675321569ef064c7389730cbc88..b6d2c486d714a9556dd55cd5d93b86c27d84cc63 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     # No point trying to support resume, if no swap partition exist
     [[ $hostonly ]] || [[ $mount_needs ]] && {
@@ -14,6 +15,7 @@ check() {
     return 0
 }
 
+# called by dracut
 install() {
     local _bin
     # Optional uswsusp support
index 7e714eb0dad8f514ed376f4c14758dfab78e994f..7bd0d2f85cd996bfd6ca20b7aadf6b652307788b 100755 (executable)
@@ -2,14 +2,17 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     return 0
 }
 
+# called by dracut
 depends() {
     echo fs-lib
 }
 
+# called by dracut
 cmdline() {
     local dev=/dev/block/$(find_root_block_device)
     if [ -e $dev ]; then
@@ -19,6 +22,7 @@ cmdline() {
     fi
 }
 
+# called by dracut
 install() {
 
     if [[ $hostonly ]]; then
index 66e5307d54c5540da08e1c558bfd6e9b0ec962fa..1f2b73376edc7c9541f89db0d22116565d147850 100755 (executable)
@@ -4,6 +4,7 @@
 
 # fixme: assume user is root
 
+# called by dracut
 check() {
     # If our prerequisites are not met, fail.
     type -P ssh >/dev/null || return 1
@@ -20,6 +21,7 @@ check() {
     return 255
 }
 
+# called by dracut
 depends() {
     # We depend on network modules being loaded
     echo network
@@ -46,6 +48,7 @@ inst_sshenv()
     return 0
 }
 
+# called by dracut
 install() {
     inst_multiple ssh scp
     inst_sshenv
index 4656cd3662a44b74dda64d4b7c13c20930e4bf70..6848cb9caeaf6a78a57135e4822f567b95cebb28 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 install() {
     local _terminfodir
     # terminfo bits make things work better if you fall into interactive mode
index 2cdcc1bf0924da4b4b78501cbe6e03342603155a..88c3da2a8843be2fdcd009da0d3a7825e44d1a82 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 install() {
     local _i
 
index 12bd354b6e94a791113615778ab3e15cc74add8e..7d6d0f149f1f12a42143c42472d140564c1f9750 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     [[ $hostonly ]] || [[ $mount_needs ]] && {
         for fs in ${host_fs_types[@]}; do
@@ -27,14 +28,17 @@ check() {
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 installkernel() {
     instmods 9p 9pnet_virtio virtio_pci
 }
 
+# called by dracut
 install() {
     inst_hook cmdline 95 "$moddir/parse-virtfs.sh"
     inst_hook mount 99 "$moddir/mount-virtfs.sh"
index 99066958606de6146a8c45e10ad595eaa1ab9140..5d9b506dc6cf27dc2d55e8d826961fe04310f42e 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     arch=$(uname -m)
     [ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1
@@ -9,6 +10,7 @@ check() {
     return 0
 }
 
+# called by dracut
 depends() {
     arch=$(uname -m)
     [ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1
@@ -16,10 +18,12 @@ depends() {
     return 0
 }
 
+# called by dracut
 installkernel() {
     instmods zfcp
 }
 
+# called by dracut
 install() {
     inst_hook cmdline 30 "$moddir/parse-zfcp.sh"
     inst_multiple zfcp_cio_free grep sed seq
index 16f849383a8219cef970447ce65e36b339a4d26c..4c211a9783911fd1ed12cbea83036ee895e54bd0 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     arch=$(uname -m)
     [ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1
@@ -9,14 +10,17 @@ check() {
     return 0
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 installkernel() {
     instmods ctcm lcs qeth qeth_l2 qeth_l3
 }
 
+# called by dracut
 install() {
     inst_hook cmdline 30 "$moddir/parse-ccw.sh"
     inst_rules 81-ccw.rules
index fbe3aa3eb0daaba442398ccdaef33ed9729adbe1..d4e6118811eef0c2765e949c23f13425235650e5 100755 (executable)
@@ -2,14 +2,17 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     inst_hook cmdline 60 "$moddir/securityfs.sh"
 }
index 4a0b4f41e0e37ba3f2d983f4a36c2e0488edf960..b51c4724ae1d5eb96bd1db1abd8ca521dfc927da 100755 (executable)
@@ -2,16 +2,19 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     [[ "$mount_needs" ]] && return 1
     type -P biosdevname >/dev/null || return 1
     return 0
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     inst_multiple biosdevname
     inst_rules 71-biosdevname.rules
index a94c4f539f01c45a0004b01a1f7b5a278af9d5e7..e6e36907924291eaad2cb1bcdd20609d39373803 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     [[ $hostonly ]] && {
         [ -x "/bin/keyctl" ] || return 1
@@ -10,14 +11,17 @@ check() {
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 installkernel() {
     instmods trusted encrypted
 }
 
+# called by dracut
 install() {
     inst_multiple keyctl uname
     inst_hook pre-pivot 60 "$moddir/masterkey.sh"
index b0d6754287b8cfd98bb27787fa6c3f4c1fb26614..e12fad4a8bbd223f88f8da925e3abe396ea3d996 100755 (executable)
@@ -2,19 +2,23 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     return 255
 }
 
+# called by dracut
 depends() {
     echo masterkey
     return 0
 }
 
+# called by dracut
 installkernel() {
     instmods ecryptfs
 }
 
+# called by dracut
 install() {
     inst_hook pre-pivot 63 "$moddir/ecryptfs-mount.sh"
 }
index ff1b4aafccf654fdc94d0d96015f9f7044c6bb71..f8f30ed71eab2faf150adc8f1bdbd6ca037efd53 100755 (executable)
@@ -2,15 +2,18 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     return 255
 }
 
+# called by dracut
 depends() {
     echo masterkey securityfs selinux
     return 0
 }
 
+# called by dracut
 install() {
     inst_hook pre-pivot 61 "$moddir/evm-enable.sh"
     inst_hook pre-pivot 62 "$moddir/ima-policy-load.sh"
index e80ae16ff15cf026d9aa85ac0c1f011e45674aa0..94ff952e4cf157d4d49ba777b6526c329c5ac4d7 100755 (executable)
@@ -2,14 +2,17 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     inst_hook initqueue/settled 99 "$moddir/pollcdrom.sh"
 }
index 4d5147bb7d1b07e16e02a08c698dae0fc0ce27bd..90bf34ba9d224cb7ab4c326567692774db38b16c 100755 (executable)
@@ -2,14 +2,17 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     inst_hook pre-pivot 50 "$moddir/selinux-loadpolicy.sh"
     inst_multiple setenforce
index daa9021083d6379e26fce33c94008e2d4ef029af..b8494c8801c30c7618fa572b67d0c6bb2640acbb 100755 (executable)
@@ -2,15 +2,18 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     # do not add this module by default
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     local _i
     local _installs
index a5ac2a535f412cd4d0c69af07cf3cf38790b1fa3..748e25bc4694379c8338c34db572816920c0e504 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     [[ $mount_needs ]] && return 1
     if [[ -x $systemdutildir/systemd ]]; then
@@ -13,10 +14,12 @@ check() {
     return 1
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     local _mods
 
index a6680693e1cc4c54cfc105926416ffe541586795..1af789f0294671c3afb39ea113d90ad5b2a8a585 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     local _init
     [[ $mount_needs ]] && return 1
@@ -10,10 +11,12 @@ check() {
     return 0
 }
 
+# called by dracut
 depends() {
     echo 'fs-lib'
 }
 
+# called by dracut
 install() {
     if ! dracut_module_included "systemd"; then
         inst_hook pre-pivot 50 "$moddir/mount-usr.sh"
index d33a0fb4357d614584bb7243d1458345eeb39c94..e53cf2ec068d3565e376790dba35d843bc24931f 100755 (executable)
@@ -2,15 +2,18 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     return 0
 }
 
+# called by dracut
 depends() {
     echo udev-rules
     return 0
 }
 
+# called by dracut
 install() {
     local _d
 
index c9c88b7d61d4300d2bb82ddd33c82dc97bd7bdca..7979babd619a62f72b6dfdfad3f367c25d311415 100755 (executable)
@@ -2,10 +2,12 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     return 0
 }
 
+# called by dracut
 depends() {
     return 0
 }
@@ -44,6 +46,7 @@ include_fs_helper_modules() {
     esac
 }
 
+# called by dracut
 installkernel() {
     # xfs and btrfs needs crc32c...
     if [[ $hostonly ]]; then
@@ -54,6 +57,7 @@ installkernel() {
     fi
 }
 
+# called by dracut
 install() {
     local _helpers
 
index 28bfc2aa7f1e2515b4780fcaae2241df1b21745f..2c3c9929be22fc679525256cc09b6629f5c58347 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/bash
 # module-setup for img-lib
 
+# called by dracut
 check() {
     for cmd in tar gzip dd; do
         command -v $cmd >/dev/null || return 1
@@ -8,10 +9,12 @@ check() {
     return 255
 }
 
+# called by dracut
 depends() {
     return 0
 }
 
+# called by dracut
 install() {
     inst_multiple tar gzip dd bash
     # TODO: make this conditional on a cmdline flag / config option
index 5361936e62d8c7d606786f4e95baa8503f142493..c09d8868643995b5dc39adb75ae60137b4c902bf 100755 (executable)
@@ -2,15 +2,18 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+# called by dracut
 check() {
     return 0
 }
 
+# called by dracut
 depends() {
     echo base
     return 0
 }
 
+# called by dracut
 install() {
     local _d
     inst_multiple umount poweroff reboot halt losetup