From fb7307b8922e9eb7da430733d6665e06d2cb0bf5 Mon Sep 17 00:00:00 2001 From: George Diamantopoulos Date: Tue, 17 Jul 2018 01:11:36 +0300 Subject: Fix initramfs missing systemd binaries 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 Signed-off-by: George Diamantopoulos Closes #7607 Closes #7719 --- contrib/dracut/90zfs/module-setup.sh.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'contrib/dracut') diff --git a/contrib/dracut/90zfs/module-setup.sh.in b/contrib/dracut/90zfs/module-setup.sh.in index 4e2edf1e8..19b763a3c 100755 --- a/contrib/dracut/90zfs/module-setup.sh.in +++ b/contrib/dracut/90zfs/module-setup.sh.in @@ -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 } -- cgit v1.2.3