summaryrefslogtreecommitdiffstats
path: root/modules.d/90crypt/module-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xmodules.d/90crypt/module-setup.sh32
1 files changed, 1 insertions, 31 deletions
diff --git a/modules.d/90crypt/module-setup.sh b/modules.d/90crypt/module-setup.sh
index d5ac45b..8d24825 100755
--- a/modules.d/90crypt/module-setup.sh
+++ b/modules.d/90crypt/module-setup.sh
@@ -18,21 +18,7 @@ check() {
# called by dracut
depends() {
- local deps
- deps="dm rootfs-block"
- if [[ $hostonly && -f "$dracutsysrootdir"/etc/crypttab ]]; then
- if grep -q -e "fido2-device=" -e "fido2-cid=" "$dracutsysrootdir"/etc/crypttab; then
- deps+=" fido2"
- fi
- if grep -q "pkcs11-uri" "$dracutsysrootdir"/etc/crypttab; then
- deps+=" pkcs11"
- fi
- if grep -q "tpm2-device=" "$dracutsysrootdir"/etc/crypttab; then
- deps+=" tpm2-tss"
- fi
- fi
- echo "$deps"
- return 0
+ echo dm rootfs-block
}
# called by dracut
@@ -160,22 +146,6 @@ install() {
inst_simple "$moddir/crypt-lib.sh" "/lib/dracut-crypt-lib.sh"
inst_script "$moddir/crypt-run-generator.sh" "/sbin/crypt-run-generator"
- if dracut_module_included "systemd"; then
- # the cryptsetup targets are already pulled in by 00systemd, but not
- # the enablement symlinks
- inst_multiple -o \
- "$tmpfilesdir"/cryptsetup.conf \
- "$systemdutildir"/system-generators/systemd-cryptsetup-generator \
- "$systemdutildir"/systemd-cryptsetup \
- "$systemdsystemunitdir"/systemd-ask-password-console.path \
- "$systemdsystemunitdir"/systemd-ask-password-console.service \
- "$systemdsystemunitdir"/cryptsetup.target \
- "$systemdsystemunitdir"/sysinit.target.wants/cryptsetup.target \
- "$systemdsystemunitdir"/remote-cryptsetup.target \
- "$systemdsystemunitdir"/initrd-root-device.target.wants/remote-cryptsetup.target \
- systemd-ask-password systemd-tty-ask-password-agent
- fi
-
# Install required libraries.
_arch=${DRACUT_ARCH:-$(uname -m)}
inst_libdir_file \