Skip to content

Commit

Permalink
Add quotations for ${ENCRYPTIONROOT}
Browse files Browse the repository at this point in the history
Add quotations for ${ENCRYPTIONROOT} to avoid breaking systems
with a space in the name.

Reviewed-by: bunder2015 <[email protected]>
Reviewed-by: Tom Caputi <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Kash Pande <[email protected]>
Related-to: openzfs#8093 
Closes openzfs#8114
  • Loading branch information
kpande authored and behlendorf committed Nov 9, 2018
1 parent ad796b8 commit 13c59bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/dracut/90zfs/mount-zfs.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 13c59bb

Please sign in to comment.