GRUB: "Grub" -> "GRUB".
svn path=/nixos/trunk/; revision=17793
This commit is contained in:
parent
f9541e0d12
commit
290f41bd9f
|
@ -23,13 +23,13 @@ in
|
||||||
###### interface
|
###### interface
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
|
||||||
boot.loader.grub = {
|
boot.loader.grub = {
|
||||||
|
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
default = true;
|
default = true;
|
||||||
description = ''
|
description = ''
|
||||||
Whether to enable the GRUB boot loader.
|
Whether to enable the GNU GRUB boot loader.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -45,48 +45,48 @@ in
|
||||||
device = mkOption {
|
device = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "/dev/hda";
|
example = "/dev/hda";
|
||||||
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
|
||||||
to make the system bootable.
|
to make the system bootable.
|
||||||
";
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
bootDevice = mkOption {
|
bootDevice = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "(hd0,0)";
|
example = "(hd0,0)";
|
||||||
description = "
|
description = ''
|
||||||
If the system partition may be wiped on reinstall, it is better
|
If the system partition may be wiped on reinstall, it is better
|
||||||
to have /boot on a small partition. To do it, we need to explain
|
to have /boot on a small partition. To do it, we need to explain
|
||||||
to GRUB where the kernels live. Specify the partition here (in
|
to GRUB where the kernels live. Specify the partition here (in
|
||||||
GRUB notation).
|
GRUB notation).
|
||||||
";
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
configurationName = mkOption {
|
configurationName = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "Stable 2.6.21";
|
example = "Stable 2.6.21";
|
||||||
description = "
|
description = ''
|
||||||
Grub entry name instead of default.
|
GRUB entry name instead of default.
|
||||||
";
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
extraEntries = mkOption {
|
extraEntries = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "
|
example = ''
|
||||||
title Windows
|
title Windows
|
||||||
chainloader (hd0,1)+1
|
chainloader (hd0,1)+1
|
||||||
";
|
'';
|
||||||
description = "
|
description = ''
|
||||||
Any additional entries you want added to the Grub boot menu.
|
Any additional entries you want added to the GRUB boot menu.
|
||||||
";
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
extraEntriesBeforeNixOS = mkOption {
|
extraEntriesBeforeNixOS = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
description = "
|
description = ''
|
||||||
Whether extraEntries are included before the default option.
|
Whether extraEntries are included before the default option.
|
||||||
";
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
splashImage = mkOption {
|
splashImage = mkOption {
|
||||||
|
@ -102,32 +102,32 @@ in
|
||||||
sha256 = "0y8fvxalwxyid4k438k7c21bnv728qjsb92rqfapsmpv2bcj7f6k";
|
sha256 = "0y8fvxalwxyid4k438k7c21bnv728qjsb92rqfapsmpv2bcj7f6k";
|
||||||
};
|
};
|
||||||
example = null;
|
example = null;
|
||||||
description = "
|
description = ''
|
||||||
Background image used for Grub. It must be a 640x480,
|
Background image used for GRUB. It must be a 640x480,
|
||||||
14-colour image in XPM format, optionally compressed with
|
14-colour image in XPM format, optionally compressed with
|
||||||
<command>gzip</command> or <command>bzip2</command>. Set to
|
<command>gzip</command> or <command>bzip2</command>. Set to
|
||||||
<literal>null</literal> to run Grub in text mode.
|
<literal>null</literal> to run GRUB in text mode.
|
||||||
";
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
configurationLimit = mkOption {
|
configurationLimit = mkOption {
|
||||||
default = 100;
|
default = 100;
|
||||||
example = 120;
|
example = 120;
|
||||||
description = "
|
description = ''
|
||||||
Maximum of configurations in boot menu. GRUB has problems when
|
Maximum of configurations in boot menu. GRUB has problems when
|
||||||
there are too many entries.
|
there are too many entries.
|
||||||
";
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
copyKernels = mkOption {
|
copyKernels = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
description = "
|
description = ''
|
||||||
Whether the Grub menu builder should copy kernels and initial
|
Whether the GRUB menu builder should copy kernels and initial
|
||||||
ramdisks to /boot. This is necessary when /nix is on a
|
ramdisks to /boot. This is necessary when /nix is on a
|
||||||
different file system than /boot.
|
different file system than /boot.
|
||||||
";
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue