Author: eelco
Date: Wed Apr 11 21:21:00 2012
New Revision: 33750
URL: https://nixos.org/websvn/nix/?rev=33750&sc=1
Log:
* Fix the "autocreate" option.
Modified:
nixos/trunk/modules/tasks/filesystems.nix
Modified: nixos/trunk/modules/tasks/filesystems.nix
==============================================================================
--- nixos/trunk/modules/tasks/filesystems.nix Wed Apr 11 20:09:25 2012
(r33749)
+++ nixos/trunk/modules/tasks/filesystems.nix Wed Apr 11 21:21:00 2012
(r33750)
@@ -185,6 +185,12 @@
# Ensure that this job is restarted when fstab changed:
# ${fstab}
echo "mounting filesystems..."
+
+ # Create missing mount points. Note that this won't work
+ # if the mount point is under another mount point.
+ ${flip concatMapStrings config.fileSystems (fs: optionalString
fs.autocreate ''
+ mkdir -p -m 0755 '${fs.mountPoint}'
+ '')}
'';
daemonType = "daemon";
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits