HomeFreeBSD

Fix plymouth passphrase prompt with dracut

Description

Fix plymouth passphrase prompt with dracut

plymouth --command splits the command on spaces which means
that zfs-load-key was getting the filesystem name enclosed
in single quotes (since 13c59bb76) and failing. This commit
fixes it by piping the password directly to the command
similar to how it's done in other scripts (initramfs,
dracut without plymouth).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Michal Vasilek <michal@vasilek.cz>
Related-to: #9193
Related-to: #9202
Closes #12147

Details

Provenance
Michal Vasilek <michal@vasilek.cz>Authored on Jun 26 2021, 5:43 AM
GitHub <noreply@github.com>Committed on Jun 26 2021, 5:43 AM
Parents
rG2084e9f7483a: Fix build with KASAN
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGf20fb199e607: Fix plymouth passphrase prompt with dracut (authored by Michal Vasilek <michal@vasilek.cz>).Jun 26 2021, 5:43 AM