ZFS: Set IFS=$'\t' for the read command in stage 2 load-key

Co-authored-by: Graham Christensen <graham@grahamc.com>
This commit is contained in:
Will Fancher 2020-07-02 13:35:05 -04:00
parent 05f8cba1b6
commit e2f1594695

View file

@ -520,7 +520,7 @@ in
poolImported "${pool}" || poolImport "${pool}" # Try one last time, e.g. to import a degraded pool.
if poolImported "${pool}"; then
${optionalString cfgZfs.requestEncryptionCredentials ''
${packages.zfsUser}/sbin/zfs list -rHo name,keylocation ${pool} | while read ds kl; do
${packages.zfsUser}/sbin/zfs list -rHo name,keylocation ${pool} | while IFS=$'\t' read ds kl; do
(case "$kl" in
none )
;;