* boor.loader.grub.device can only be defined once.

* Replace an obscure piece of code by its equivalent based on the
  recursiveUpdate function.  Undefined the obsolete name of
  boot.grubDevice to avoid conflicts.

svn path=/nixos/trunk/; revision=18049
This commit is contained in:
Nicolas Pierron 2009-10-30 11:57:23 +00:00
parent b86e8208d5
commit 8c5b200164
2 changed files with 12 additions and 3 deletions

View file

@ -45,6 +45,7 @@ in
device = mkOption { device = mkOption {
default = ""; default = "";
example = "/dev/hda"; example = "/dev/hda";
type = with pkgs.lib.types; uniq string;
description = '' description = ''
The device on which the boot loader, GRUB, will be installed. The device on which the boot loader, GRUB, will be installed.
If empty, GRUB won't be installed and it's your responsibility If empty, GRUB won't be installed and it's your responsibility

View file

@ -41,9 +41,17 @@ let
# you can provide an easy way to boot the same configuration # you can provide an easy way to boot the same configuration
# as you use, but with another kernel # as you use, but with another kernel
# !!! fix this # !!! fix this
children = map (x: ((import ../../../default.nix) children =
{ configuration = x//{boot=((x.boot)//{grubDevice = "";});};}).system) map (childConfig:
config.nesting.children; (import ../../../default.nix {
configuration =
pkgs.lib.recursiveUpdate childConfig {
boot.loader.grub.device = "";
# undefined the obsolete name of the previous option.
boot.grubDevice = pkgs.lib.mkNotdef;
};
}).system
) config.nesting.children;
systemBuilder = systemBuilder =