* 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"; example = "data=journal";
type = types.string; type = types.string;
merge = pkgs.lib.concatStringsSep ","; merge = pkgs.lib.concatStringsSep ",";
description = " description = "Options used to mount the file system.";
Option used to mount the file system.
";
}; };
autocreate = mkOption { autocreate = mkOption {
@ -107,6 +105,12 @@ in
<option>fileSystems.*.mountPoint</option>. <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.fsType
+ " " + fs.options + " " + fs.options
+ " 0" + " 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" + "\n"
)} )}