[Nix-dev] Re: [Nix-commits] SVN commit: nix - 18998 - eelco - in nixos/trunk: doc/config-examples modules/installer/grub

Nicolas Pierron nicolas.b.pierron at gmail.com
Thu Dec 17 02:14:10 CET 2009


On Wed, Dec 16, 2009 at 19:57, Eelco Dolstra <e.dolstra at tudelft.nl> wrote:
> * Let the GRUB menu builder detect whether /boot is on a different
>  partition from /.  If so, copy the kernels and initrds to /boot and
>  use paths relative to /boot in the GRUB configuration file.  This
>  makes the boot.loader.grub.bootDevice option obsolete.  (Is there a
>  way to mark obsolete options?)  It also makes it unnecessary to set
>  boot.loader.grub.copyKernels, although that option is still
>  available since it can speed up GRUB if the Nix store is very
>  large.

In your case obsolete means no longer used.  The only way to check if
it is defined, is to used it.  So I recommend you to add it's value to
the assertion option and add a trace message inside the merge
function.  The merge function is only called when definitions exist.
If you want to raise an error if the option is used, then add an abort
statement inside the body of the apply function.

May be I can modify the rename.nix file to support such cases.

-- 
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/
Andrew S. Tanenbaum - Never underestimate the bandwith of a wagon full of tapes.



More information about the nix-dev mailing list