systemd mount units: better handling of mandatory options

This commit is contained in:
Mathijs Kwik 2013-01-01 14:49:26 +01:00
parent ebf4816717
commit 7e70cffc45
2 changed files with 0 additions and 4 deletions

View file

@ -205,14 +205,12 @@ rec {
mountOptions = unitOptions // {
what = mkOption {
default = "";
example = "/dev/sda1";
type = types.uniq types.string;
description = "Absolute path of device node, file or other resource. (Mandatory)";
};
where = mkOption {
default = "";
example = "/mnt";
type = types.uniq types.string;
description = ''

View file

@ -292,8 +292,6 @@ let
};
mountToUnit = name: def:
assert def.mountConfig.What != "";
assert def.mountConfig.Where != "";
{ inherit (def) wantedBy enable;
text =
''