forked from mirrors/nixpkgs
nixos/filesystems: require fstab options list be non-empty
When the option list is empty, the fstab generator does not automatically add "defaults" and generates a non-working fstab (since it just emits two spaces around where the options would have been which is only technically one fstab separator).
This commit is contained in:
parent
8ce62ecc1b
commit
8b4fd74782
|
@ -54,7 +54,7 @@ let
|
|||
default = [ "defaults" ];
|
||||
example = [ "data=journal" ];
|
||||
description = lib.mdDoc "Options used to mount the file system.";
|
||||
type = types.listOf nonEmptyStr;
|
||||
type = types.nonEmptyListOf nonEmptyStr;
|
||||
};
|
||||
|
||||
depends = mkOption {
|
||||
|
|
Loading…
Reference in a new issue