diff options
author | ajs124 <ajs124@users.noreply.github.com> | 2022-07-25 23:56:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-25 23:56:12 +0200 |
commit | 66e9ea4827252166e5e8b0043d83d5a7beb66bc1 (patch) | |
tree | ca2b7c65f0d12aff6db89aa628bee434e4cecc8d /nixos | |
parent | 1472f3ab7984d0d1b537c82b1089766d04a2af40 (diff) | |
parent | db4fdd6247ec191677ac84e08da274ab88a0682e (diff) |
Merge pull request #180008 from Luflosi/skip-fsck-for-bind-mount
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/tasks/filesystems.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/tasks/filesystems.nix b/nixos/modules/tasks/filesystems.nix index b8afe231dd2e1..82adc499ad0e7 100644 --- a/nixos/modules/tasks/filesystems.nix +++ b/nixos/modules/tasks/filesystems.nix @@ -280,7 +280,8 @@ in environment.etc.fstab.text = let fsToSkipCheck = [ "none" "bindfs" "btrfs" "zfs" "tmpfs" "nfs" "vboxsf" "glusterfs" "apfs" ]; - skipCheck = fs: fs.noCheck || fs.device == "none" || builtins.elem fs.fsType fsToSkipCheck; + isBindMount = fs: builtins.elem "bind" fs.options; + skipCheck = fs: fs.noCheck || fs.device == "none" || builtins.elem fs.fsType fsToSkipCheck || isBindMount fs; # https://wiki.archlinux.org/index.php/fstab#Filepath_spaces escape = string: builtins.replaceStrings [ " " "\t" ] [ "\\040" "\\011" ] string; swapOptions = sw: concatStringsSep "," ( |