From b756a1ee81071017a90cac1535166f467dff96ee Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 13 Sep 2010 11:46:35 +0000 Subject: [PATCH] * Added an option to disable fsck on particular filesystems. svn path=/nixos/trunk/; revision=23744 --- modules/tasks/filesystems.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/modules/tasks/filesystems.nix b/modules/tasks/filesystems.nix index 5735d943c51..699e9b3c33c 100644 --- a/modules/tasks/filesystems.nix +++ b/modules/tasks/filesystems.nix @@ -94,9 +94,7 @@ in example = "data=journal"; type = types.string; merge = pkgs.lib.concatStringsSep ","; - description = " - Option used to mount the file system. - "; + description = "Options used to mount the file system."; }; autocreate = mkOption { @@ -107,6 +105,12 @@ in . "; }; + + noCheck = mkOption { + default = false; + type = types.bool; + description = "Disable running fsck on this filesystem."; + }; }; }; @@ -142,7 +146,8 @@ in + " " + fs.fsType + " " + fs.options + " 0" - + " " + (if fs.fsType == "none" then "0" else if fs.mountPoint == "/" then "1" else "2") + + " " + (if fs.fsType == "none" || fs.noCheck then "0" else + if fs.mountPoint == "/" then "1" else "2") + "\n" )}