summary refs log tree commit diff
path: root/nixos/modules/tasks/filesystems.nix
diff options
context:
space:
mode:
authoraanderse <aaron@fosslib.net>2019-02-03 08:33:31 -0500
committerTimo Kaufmann <timokau@zoho.com>2019-02-03 14:33:31 +0100
commitc01eeda8e96c0fa63eb23df3df51403cc0589672 (patch)
tree56388bcecd20fcf23e47459980a85a121df95724 /nixos/modules/tasks/filesystems.nix
parent4a394e4150d546f6d6101fc7d6b056d17c07c3c8 (diff)
downloadnixpkgs-c01eeda8e96c0fa63eb23df3df51403cc0589672.tar
nixpkgs-c01eeda8e96c0fa63eb23df3df51403cc0589672.tar.gz
nixpkgs-c01eeda8e96c0fa63eb23df3df51403cc0589672.tar.bz2
nixpkgs-c01eeda8e96c0fa63eb23df3df51403cc0589672.tar.lz
nixpkgs-c01eeda8e96c0fa63eb23df3df51403cc0589672.tar.xz
nixpkgs-c01eeda8e96c0fa63eb23df3df51403cc0589672.tar.zst
nixpkgs-c01eeda8e96c0fa63eb23df3df51403cc0589672.zip
nixos-generate-config: account for mount points & devices with spaces & tabs in the name (#50234)
Diffstat (limited to 'nixos/modules/tasks/filesystems.nix')
-rw-r--r--nixos/modules/tasks/filesystems.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/filesystems.nix b/nixos/modules/tasks/filesystems.nix
index 9e4057b5089..07f8214cea2 100644
--- a/nixos/modules/tasks/filesystems.nix
+++ b/nixos/modules/tasks/filesystems.nix
@@ -231,7 +231,7 @@ in
         fsToSkipCheck = [ "none" "bindfs" "btrfs" "zfs" "tmpfs" "nfs" "vboxsf" "glusterfs" ];
         skipCheck = fs: fs.noCheck || fs.device == "none" || builtins.elem fs.fsType fsToSkipCheck;
         # https://wiki.archlinux.org/index.php/fstab#Filepath_spaces
-        escape = string: builtins.replaceStrings [ " " ] [ "\\040" ] string;
+        escape = string: builtins.replaceStrings [ " " "\t" ] [ "\\040" "\\011" ] string;
       in ''
         # This is a generated file.  Do not edit!
         #