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 <behlendorf1@llnl.gov>
Signed-off-by: George Diamantopoulos <georgediam@gmail.com>
Closes #7607
Closes #7719
This commit is contained in:
George Diamantopoulos 2018-07-17 01:11:36 +03:00 committed by Brian Behlendorf
parent 5fadb7fb0c
commit fb7307b892
1 changed files with 2 additions and 0 deletions

View File

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