mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 02:51:18 +00:00
deb4f88c2c
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
28 lines
681 B
Nix
28 lines
681 B
Nix
# This configuration has / on a LVM volume. Since Grub
|
|
# doesn't know about LVM, a separate /boot is therefore
|
|
# needed.
|
|
#
|
|
# In this example, labels are used for file systems and
|
|
# swap devices: "boot" might be /dev/sda1, "root" might be
|
|
# /dev/my-volume-group/root, and "swap" might be /dev/sda2.
|
|
# In particular there is no specific reference to the fact
|
|
# that / is on LVM; that's figured out automatically.
|
|
|
|
{
|
|
boot.loader.grub.device = "/dev/sda";
|
|
boot.initrd.kernelModules = ["ata_piix"];
|
|
|
|
fileSystems = [
|
|
{ mountPoint = "/";
|
|
label = "root";
|
|
}
|
|
{ mountPoint = "/boot";
|
|
label = "boot";
|
|
}
|
|
];
|
|
|
|
swapDevices = [
|
|
{ label = "swap"; }
|
|
];
|
|
}
|