* Require fileSystems to be set.

svn path=/nixos/trunk/; revision=34080
This commit is contained in:
Eelco Dolstra 2012-05-14 01:33:11 +00:00
parent 71d867daf6
commit 67d5f2b444
2 changed files with 2 additions and 2 deletions

View File

@ -304,7 +304,7 @@ let
# !!! copy&pasted from upstart-jobs/filesystems.nix.
mountPoints =
if fileSystems == null
if fileSystems == []
then abort "You must specify the fileSystems option!"
else map (fs: fs.mountPoint) fileSystems;
devices = map (fs: if fs.device != null then fs.device else "/dev/disk/by-label/${fs.label}") fileSystems;

View File

@ -69,7 +69,7 @@ in
<command>mkdir -p</command> .
'';
type = types.nullOr (types.list types.optionSet);
type = types.list types.optionSet;
options = {