]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
crypt: do not cleanup in systemd mode
authorHarald Hoyer <harald@redhat.com>
Wed, 6 Mar 2013 15:22:42 +0000 (16:22 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 6 Mar 2013 16:29:11 +0000 (17:29 +0100)
modules.d/90crypt/module-setup.sh

index 5c1c71bc428afcc819495fc7df7c32ae948cf25c..93b996cd8fc17e26a7f4cc5b216c255b3a2376ee 100755 (executable)
@@ -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"
-    inst_hook cleanup 30 "$moddir/crypt-cleanup.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() {
         $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
 }