summaryrefslogtreecommitdiffstats
path: root/modules.d/90crypt/module-setup.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 14:01:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 14:01:35 +0000
commite6f2eaf47a177a8eca054d1d70a1b6287e8c3521 (patch)
treec5719e819a9e37df4b54affd61438f382ec38a8f /modules.d/90crypt/module-setup.sh
parentAdding upstream version 060+5. (diff)
downloaddracut-e6f2eaf47a177a8eca054d1d70a1b6287e8c3521.tar.xz
dracut-e6f2eaf47a177a8eca054d1d70a1b6287e8c3521.zip
Adding upstream version 102.upstream/102
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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 \