From 13c59bb76b2f56db9f3ff6597d8a865347158e2c Mon Sep 17 00:00:00 2001 From: kpande Date: Fri, 9 Nov 2018 12:32:01 -0500 Subject: [PATCH] Add quotations for ${ENCRYPTIONROOT} Add quotations for ${ENCRYPTIONROOT} to avoid breaking systems with a space in the name. Reviewed-by: bunder2015 Reviewed-by: Tom Caputi Reviewed-by: George Melikov Reviewed-by: Brian Behlendorf Signed-off-by: Kash Pande Related-to: #8093 Closes #8114 --- contrib/dracut/90zfs/mount-zfs.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/dracut/90zfs/mount-zfs.sh.in b/contrib/dracut/90zfs/mount-zfs.sh.in index 8ae092c3df..23f7e3e295 100755 --- a/contrib/dracut/90zfs/mount-zfs.sh.in +++ b/contrib/dracut/90zfs/mount-zfs.sh.in @@ -66,7 +66,7 @@ if import_pool "${ZFS_POOL}" ; then ask_for_password \ --tries 5 \ --prompt "Encrypted ZFS password for ${ENCRYPTIONROOT}: " \ - --cmd "zfs load-key ${ENCRYPTIONROOT}" + --cmd "zfs load-key '${ENCRYPTIONROOT}'" fi fi # Let us tell the initrd to run on shutdown.