# -*- 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
# -*- 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
# -*- 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
# -*- 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
# -*- 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 "
done
}
+# called by dracut
install() {
local _dir
inst_hook pre-trigger 01 "$moddir/fips-boot.sh"
# -*- 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
# -*- 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"
done
}
+# called by dracut
install() {
return 0
}
# Copyright 2013 Red Hat, Inc.
# Peter Jones <pjones@redhat.com>
+# called by dracut
check() {
[[ -x /usr/bin/keyctl ]] || return 1
return 0
}
+# called by dracut
depends() {
return 0
}
+# called by dracut
install() {
inst_dir /lib/modules/keys
inst_binary /usr/bin/keyctl
# -*- 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 \
# -*- 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"
# -*- 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)
# -*- 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 0
}
+# called by dracut
depends() {
return 0
}
+# called by dracut
install() {
if dracut_module_included "systemd"; then
[[ -f /etc/vconsole.conf ]] || return 0
# -*- 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"
# -*- 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
return 255
}
+# called by dracut
depends() {
return 0
}
+# called by dracut
installkernel() {
# Include wired net drivers, excluding wireless
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
# -*- 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"
}
#!/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"
# -*- 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
# -*- 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
# -*- 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
# -*- 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
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"
# -*- 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,
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"
# -*- 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.
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
done
}
+# called by dracut
install() {
cmdline >> "${initdir}/etc/cmdline.d/90crypt.conf"
# -*- 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"
# -*- 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
return 0
}
+# called by dracut
depends() {
echo dm rootfs-block
return 0
}
+# called by dracut
cmdline() {
local _activated
declare -A _activated
done
}
+# called by dracut
install() {
local _i
# -*- 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
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
# -*- 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() {
:
}
+# called by dracut
install() {
inst_multiple -o /lib/modprobe.d/*.conf
[[ $hostonly ]] && inst_multiple -o /etc/modprobe.d/*.conf /etc/modprobe.conf
#!/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"
# -*- 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
return 0
}
+# called by dracut
depends() {
# We depend on dm_mod being loaded
echo rootfs-block dm
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
# -*- 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.
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
done
}
+# called by dracut
install() {
local rule rule_path
inst_multiple cat
# -*- 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.
return 0
}
+# called by dracut
depends() {
echo rootfs-block
echo dm
return 0
}
+# called by dracut
installkernel() {
local _ret
local _arch=$(uname -m)
find_kernel_modules_by_path drivers/md ) | mp_mod_filter | instmods
}
+# called by dracut
install() {
local _f
inst_multiple -o \
# -*- 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)
return 255
}
+# called by dracut
installkernel() {
# qemu specific modules
hostonly='' instmods virtio_net e1000 8139cp pcnet32 e100 ne2k_pci
# -*- 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)
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
# 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"
+# 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"
# -*- 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
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
# -*- 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
# -*- 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 31 "$moddir/parse-dasd-mod.sh"
inst_multiple dasd_cio_free grep sed seq
# -*- 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 \
# -*- 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
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
# -*- 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"
# -*- 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.
return 0
}
+# called by dracut
depends() {
echo network rootfs-block
}
+# called by dracut
installkernel() {
local _arch=$(uname -m)
| iscsi_module_filter | instmods
}
+# called by dracut
install() {
inst_multiple umount iscsistart hostname iscsi-iname
inst_multiple -o iscsiuio
# -*- 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.
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"
# -*- 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
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
# -*- 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 ]] && {
return 0
}
+# called by dracut
install() {
local _bin
# Optional uswsusp support
# -*- 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
fi
}
+# called by dracut
install() {
if [[ $hostonly ]]; then
# fixme: assume user is root
+# called by dracut
check() {
# If our prerequisites are not met, fail.
type -P ssh >/dev/null || return 1
return 255
}
+# called by dracut
depends() {
# We depend on network modules being loaded
echo network
return 0
}
+# called by dracut
install() {
inst_multiple ssh scp
inst_sshenv
# -*- 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
# -*- 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
# -*- 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
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"
# -*- 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 0
}
+# called by dracut
depends() {
arch=$(uname -m)
[ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1
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
# -*- 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 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
# -*- 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"
}
# -*- 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
# -*- 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
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"
# -*- 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"
}
# -*- 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"
# -*- 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"
}
# -*- 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
# -*- 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
# -*- 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
return 1
}
+# called by dracut
depends() {
return 0
}
+# called by dracut
install() {
local _mods
# -*- 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
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"
# -*- 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
# -*- 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
}
esac
}
+# called by dracut
installkernel() {
# xfs and btrfs needs crc32c...
if [[ $hostonly ]]; then
fi
}
+# called by dracut
install() {
local _helpers
#!/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
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
# -*- 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