mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
* Added an option to disable fsck on particular filesystems.
svn path=/nixos/trunk/; revision=23744
This commit is contained in:
parent
e871e84159
commit
b756a1ee81
@ -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"
|
||||
)}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user