mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
Check whether fileSystems defines the root FS
This commit is contained in:
parent
8951be2d80
commit
dc87f8e080
2 changed files with 6 additions and 0 deletions
|
@ -330,6 +330,11 @@ in
|
|||
|
||||
config = {
|
||||
|
||||
assertions = singleton
|
||||
{ assertion = any (fs: fs.mountPoint == "/") (attrValues config.fileSystems);
|
||||
message = "The ‘fileSystems’ option does not specify your root file system.";
|
||||
};
|
||||
|
||||
system.build.bootStage1 = bootStage1;
|
||||
system.build.initialRamdisk = initialRamdisk;
|
||||
system.build.extraUtils = extraUtils;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue