]> granicus.if.org Git - zfs/commitdiff
Fix initramfs missing systemd binaries
authorGeorge Diamantopoulos <georgediam@gmail.com>
Mon, 16 Jul 2018 22:11:36 +0000 (01:11 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 27 Jul 2018 16:29:43 +0000 (09:29 -0700)
Systemd binaries necessary for mounting an encrypted root dataset
weren't copied to initramfs generated by dracut. This patch fixes
this and copies these binaries unconditionally, that is
regardless of whether native ZFS encryption is used for the
root dataset.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Diamantopoulos <georgediam@gmail.com>
Closes #7607
Closes #7719

contrib/dracut/90zfs/module-setup.sh.in

index 4e2edf1e8e9a56f3337fedcce50c9691f3776f8a..19b763a3c5f7e96d69e7dae57cd7b1ac65fe7174 100755 (executable)
@@ -97,5 +97,7 @@ install() {
                                type mark_hostonly >/dev/null 2>&1 && mark_hostonly @systemdunitdir@/zfs-import-$_item.service
                        fi
                done
+               dracut_install systemd-ask-password
+               dracut_install systemd-tty-ask-password-agent
        fi
 }