* 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.

svn path=/nixos/trunk/; revision=18998
This commit is contained in:
Eelco Dolstra
2009-12-16 18:57:02 +00:00
parent 8d588424d2
commit deb4f88c2c
3 changed files with 35 additions and 41 deletions

View File

@@ -1,9 +1,6 @@
# This configuration has / on a LVM volume. Since Grub
# doesn't know about LVM, a separate /boot is therefore
# needed. In particular you need to set "copyKernels"
# to tell NixOS to copy kernels and initrds from /nix/store
# to /boot, and "bootMount" to tell Grub the /boot device
# in Grub syntax (e.g. (hd0,0) for /dev/sda1).
# needed.
#
# In this example, labels are used for file systems and
# swap devices: "boot" might be /dev/sda1, "root" might be
@@ -12,12 +9,8 @@
# that / is on LVM; that's figured out automatically.
{
boot = {
grubDevice = "/dev/sda";
initrd.kernelModules = ["ata_piix"];
copyKernels = true;
bootMount = "(hd0,0)";
};
boot.loader.grub.device = "/dev/sda";
boot.initrd.kernelModules = ["ata_piix"];
fileSystems = [
{ mountPoint = "/";