From dd80fa1e9bed5af95fe2a02109f1852d447c9471 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Thu, 28 Jul 2022 20:12:24 +0200 Subject: [PATCH] nixos/filesystems: skip fsck for more filesystems This commit prevents warning messages like ``` systemd-fstab-generator: Checking was requested for "/path/to/device", but it is not a device. ``` in `dmesg` when one of the filesystems 9p, cifs, prl_fs or vmhgfs is added to the list of `fileSystems`. This happens because the generated /etc/fstab entry contains a non-zero fsck pass number, which doesn't make sense for these filesystems. --- nixos/modules/tasks/filesystems.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/tasks/filesystems.nix b/nixos/modules/tasks/filesystems.nix index c1e96e7aede7..318740a44f4a 100644 --- a/nixos/modules/tasks/filesystems.nix +++ b/nixos/modules/tasks/filesystems.nix @@ -279,7 +279,7 @@ in environment.etc.fstab.text = let - fsToSkipCheck = [ "none" "bindfs" "btrfs" "zfs" "tmpfs" "nfs" "vboxsf" "glusterfs" "apfs" ]; + fsToSkipCheck = [ "none" "bindfs" "btrfs" "zfs" "tmpfs" "nfs" "vboxsf" "glusterfs" "apfs" "9p" "cifs" "prl_fs" "vmhgfs" ]; 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