* Added an option to disable fsck on particular filesystems.

svn path=/nixos/trunk/; revision=23744
This commit is contained in:
Eelco Dolstra 2010-09-13 11:46:35 +00:00
parent e871e84159
commit b756a1ee81

View file

@ -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
<option>fileSystems.*.mountPoint</option>.
";
};
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"
)}