mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-31 11:14:09 +03:00
contrib: dracut: zfs-lib: simplify ask_for_password
The only user is mount-zfs.sh (non-systemd systems),
so reduce it to what it needs
Upstream-commit: 5d31169d7c
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13291
This commit is contained in:
@@ -56,9 +56,9 @@ if import_pool "${ZFS_POOL}" ; then
|
||||
if [ "$KEYSTATUS" = "unavailable" ]; then
|
||||
# decrypt them
|
||||
ask_for_password \
|
||||
--tries 5 \
|
||||
--prompt "Encrypted ZFS password for ${ENCRYPTIONROOT}: " \
|
||||
--cmd "zfs load-key '${ENCRYPTIONROOT}'"
|
||||
5 \
|
||||
"Encrypted ZFS password for ${ENCRYPTIONROOT}: " \
|
||||
"zfs load-key '${ENCRYPTIONROOT}'"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user