diff options
author | Will Fancher <elvishjerricco@gmail.com> | 2020-07-02 13:35:05 -0400 |
---|---|---|
committer | Will Fancher <elvishjerricco@gmail.com> | 2020-07-02 13:50:29 -0400 |
commit | e2f1594695c3795c09f40ed7556af2bbc49b8fdc (patch) | |
tree | 4574f07573ed3fea4a3f7d0310dbd7582bd3803f /nixos/modules/tasks | |
parent | 05f8cba1b63629737749d8c6f34c6456fb3b105d (diff) |
ZFS: Set IFS=$'\t' for the read command in stage 2 load-key
Co-authored-by: Graham Christensen <graham@grahamc.com>
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r-- | nixos/modules/tasks/filesystems/zfs.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix index 0d2f624a4559..cb8947fd9865 100644 --- a/nixos/modules/tasks/filesystems/zfs.nix +++ b/nixos/modules/tasks/filesystems/zfs.nix @@ -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 ) ;; |