Browse Source

crypt: do not cleanup in systemd mode

master
Harald Hoyer 12 years ago
parent
commit
e9020221a7
  1. 3
      modules.d/90crypt/module-setup.sh

3
modules.d/90crypt/module-setup.sh

@ -46,7 +46,9 @@ install() { @@ -46,7 +46,9 @@ install() {
inst_script "$moddir"/probe-keydev.sh /sbin/probe-keydev
inst_hook cmdline 10 "$moddir/parse-keydev.sh"
inst_hook cmdline 30 "$moddir/parse-crypt.sh"
if ! dracut_module_included "systemd"; then
inst_hook cleanup 30 "$moddir/crypt-cleanup.sh"
fi
[[ $hostonly ]] && inst_simple /etc/crypttab
inst_simple "$moddir/crypt-lib.sh" "/lib/dracut-crypt-lib.sh"

@ -60,4 +62,5 @@ install() { @@ -60,4 +62,5 @@ install() {
$systemdsystemunitdir/sysinit.target.wants/cryptsetup.target \
systemd-ask-password systemd-tty-ask-password-agent
inst_script "$moddir"/crypt-run-generator.sh /sbin/crypt-run-generator
dracut_need_initqueue
}

Loading…
Cancel
Save