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
This commit is contained in:
parent
2084e9f748
commit
f20fb199e6
|
@ -179,8 +179,8 @@ ask_for_password() {
|
||||||
# Prompt for password with plymouth, if installed and running.
|
# Prompt for password with plymouth, if installed and running.
|
||||||
if plymouth --ping 2>/dev/null; then
|
if plymouth --ping 2>/dev/null; then
|
||||||
plymouth ask-for-password \
|
plymouth ask-for-password \
|
||||||
--prompt "$ply_prompt" --number-of-tries="$ply_tries" \
|
--prompt "$ply_prompt" --number-of-tries="$ply_tries" | \
|
||||||
--command="$ply_cmd"
|
eval "$ply_cmd"
|
||||||
ret=$?
|
ret=$?
|
||||||
else
|
else
|
||||||
if [ "$tty_echo_off" = yes ]; then
|
if [ "$tty_echo_off" = yes ]; then
|
||||||
|
|
Loading…
Reference in New Issue