]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
90crypt: install crypt-run-generator in non-systemd environments
authorDaniel Molkentin <dmolkentin@suse.com>
Thu, 6 Feb 2020 09:00:23 +0000 (10:00 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Wed, 4 Mar 2020 08:22:09 +0000 (09:22 +0100)
modules.d/90crypt/module-setup.sh

index 51a045c2f754c972f36ba13294b1305c86eb5805..3ee4c5458ae301e1d0a98b70468bafaf04b1a453 100755 (executable)
@@ -119,6 +119,7 @@ install() {
     fi
 
     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
         inst_multiple -o \
@@ -129,7 +130,6 @@ install() {
                       $systemdsystemunitdir/cryptsetup.target \
                       $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
     fi
 
     dracut_need_initqueue