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
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 29 2021, 8:14 PM
Parents
rG57ce66d293de: Fix build with KASAN
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG4ebda5d4d32d: Fix plymouth passphrase prompt with dracut (authored by Michal Vasilek <michal@vasilek.cz>).Jun 29 2021, 8:14 PM