summary refs log tree commit diff
path: root/nixos/modules/tasks/filesystems/zfs.nix
diff options
context:
space:
mode:
authorWill Fancher <elvishjerricco@gmail.com>2020-07-02 13:35:05 -0400
committerWill Fancher <elvishjerricco@gmail.com>2020-07-02 13:50:29 -0400
commite2f1594695c3795c09f40ed7556af2bbc49b8fdc (patch)
tree4574f07573ed3fea4a3f7d0310dbd7582bd3803f /nixos/modules/tasks/filesystems/zfs.nix
parent05f8cba1b63629737749d8c6f34c6456fb3b105d (diff)
downloadnixpkgs-e2f1594695c3795c09f40ed7556af2bbc49b8fdc.tar
nixpkgs-e2f1594695c3795c09f40ed7556af2bbc49b8fdc.tar.gz
nixpkgs-e2f1594695c3795c09f40ed7556af2bbc49b8fdc.tar.bz2
nixpkgs-e2f1594695c3795c09f40ed7556af2bbc49b8fdc.tar.lz
nixpkgs-e2f1594695c3795c09f40ed7556af2bbc49b8fdc.tar.xz
nixpkgs-e2f1594695c3795c09f40ed7556af2bbc49b8fdc.tar.zst
nixpkgs-e2f1594695c3795c09f40ed7556af2bbc49b8fdc.zip
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/filesystems/zfs.nix')
-rw-r--r--nixos/modules/tasks/filesystems/zfs.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix
index 0d2f624a455..cb8947fd986 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 )
                         ;;