]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
90crypt: ship initrd-cryptsetup.target
authorJonathan Lebon <jonathan@jlebon.com>
Tue, 20 Oct 2020 20:41:00 +0000 (16:41 -0400)
committerDaniel Molkentin <daniel@molkentin.de>
Wed, 21 Oct 2020 14:43:53 +0000 (16:43 +0200)
This was added in https://github.com/systemd/systemd/pull/17149 and is
the designated cryptsetup target for all encrypted volumes that need to
be opened in the initrd.

So it effectively replaces `cryptsetup.target` and
`remote-cryptsetup.target` there. I've removed the latter since it was
added recently (by me) in #930, but kept `cryptsetup.target` since we've
been shipping it for a long time now.

modules.d/00systemd/module-setup.sh
modules.d/90crypt/module-setup.sh

index bbce31a28c8e74b2d8e35f1535ad6d154c7d2f2a..29485375a54ecaca64fc4f10c4dab1b3b71f8725 100755 (executable)
@@ -66,7 +66,6 @@ install() {
         \
         $systemdsystemunitdir/cryptsetup.target \
         $systemdsystemunitdir/cryptsetup-pre.target \
-        $systemdsystemunitdir/remote-cryptsetup.target \
         $systemdsystemunitdir/emergency.target \
         $systemdsystemunitdir/sysinit.target \
         $systemdsystemunitdir/basic.target \
index e3d6338f182c1c60550d295c9209dd4f08f58fc6..3deee65ed9e3bb9811a88de0154ba81b07c9ac2f 100755 (executable)
@@ -151,6 +151,8 @@ install() {
                       $systemdsystemunitdir/systemd-ask-password-console.service \
                       $systemdsystemunitdir/cryptsetup.target \
                       $systemdsystemunitdir/sysinit.target.wants/cryptsetup.target \
+                      $systemdsystemunitdir/initrd-cryptsetup.target \
+                      $systemdsystemunitdir/sysinit.target.wants/initrd-cryptsetup.target \
                       systemd-ask-password systemd-tty-ask-password-agent
     fi