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:
parent
05f8cba1b6
commit
e2f1594695
1 changed files with 1 additions and 1 deletions
|
@ -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 )
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue