nixos: Don't do filesystem checks on ZFS or NFS filesystems
This commit is contained in:
parent
f637e27138
commit
1b66077205
1 changed files with 5 additions and 2 deletions
|
@ -142,7 +142,10 @@ in
|
|||
++ config.system.fsPackages;
|
||||
|
||||
environment.etc.fstab.text =
|
||||
''
|
||||
let
|
||||
fsToSkipCheck = [ "none" "btrfs" "zfs" "tmpfs" "nfs" ];
|
||||
skipCheck = fs: fs.noCheck || fs.device == "none" || builtins.elem fs.fsType fsToSkipCheck;
|
||||
in ''
|
||||
# This is a generated file. Do not edit!
|
||||
|
||||
# Filesystems.
|
||||
|
@ -154,7 +157,7 @@ in
|
|||
+ " " + fs.fsType
|
||||
+ " " + fs.options
|
||||
+ " 0"
|
||||
+ " " + (if fs.fsType == "none" || fs.device == "none" || fs.fsType == "btrfs" || fs.fsType == "tmpfs" || fs.noCheck then "0" else
|
||||
+ " " + (if skipCheck fs then "0" else
|
||||
if fs.mountPoint == "/" then "1" else "2")
|
||||
+ "\n"
|
||||
)}
|
||||
|
|
Loading…
Reference in a new issue