Author: eelco
Date: Mon Sep 13 11:46:35 2010
New Revision: 23744
URL: https://svn.nixos.org/websvn/nix/?rev=23744&sc=1

Log:
* Added an option to disable fsck on particular filesystems.

Modified:
   nixos/trunk/modules/tasks/filesystems.nix

Modified: nixos/trunk/modules/tasks/filesystems.nix
==============================================================================
--- nixos/trunk/modules/tasks/filesystems.nix   Mon Sep 13 11:33:05 2010        
(r23743)
+++ nixos/trunk/modules/tasks/filesystems.nix   Mon Sep 13 11:46:35 2010        
(r23744)
@@ -94,9 +94,7 @@
           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 @@
             <option>fileSystems.*.mountPoint</option>.
           ";
         };
+
+        noCheck = mkOption {
+          default = false;
+          type = types.bool;
+          description = "Disable running fsck on this filesystem.";
+        };
       };
     };
   
@@ -142,7 +146,8 @@
                 + " " + 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"
             )}
 
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to