mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 11:40:45 +00:00
* Move initrd-related options to the appropriate module.
svn path=/nixos/branches/modular-nixos/; revision=15746
This commit is contained in:
parent
68c3132f46
commit
690416cf1a
|
@ -6,6 +6,47 @@
|
|||
{pkgs, config, ...}:
|
||||
|
||||
let
|
||||
|
||||
inherit (pkgs.lib) mkOption;
|
||||
|
||||
options = {
|
||||
|
||||
boot.resumeDevice = mkOption {
|
||||
default = "";
|
||||
example = "0:0";
|
||||
description = "
|
||||
Device for manual resume attempt during boot. Looks like
|
||||
major:minor. ls -l /dev/SWAP_PARTION shows them.
|
||||
";
|
||||
};
|
||||
|
||||
boot.initrd.allowMissing = mkOption {
|
||||
default = false;
|
||||
description = ''
|
||||
Allow some initrd components to be missing. Useful for
|
||||
custom kernel that are changed too often to track needed
|
||||
kernelModules.
|
||||
'';
|
||||
};
|
||||
|
||||
boot.initrd.lvm = mkOption {
|
||||
default = true;
|
||||
description = "
|
||||
Whether to include lvm in the initial ramdisk. You should use this option
|
||||
if your ROOT device is on lvm volume.
|
||||
";
|
||||
};
|
||||
|
||||
boot.initrd.enableSplashScreen = mkOption {
|
||||
default = true;
|
||||
description = "
|
||||
Whether to show a nice splash screen while booting.
|
||||
";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
kernelPackages = config.boot.kernelPackages;
|
||||
modulesTree = config.system.modulesTree;
|
||||
|
||||
|
@ -199,6 +240,8 @@ let
|
|||
|
||||
in {
|
||||
|
||||
require = [options];
|
||||
|
||||
system.build.bootStage1 = bootStage1;
|
||||
system.build.initialRamdisk = initialRamdisk;
|
||||
|
||||
|
|
|
@ -29,15 +29,6 @@ in
|
|||
";
|
||||
};
|
||||
|
||||
resumeDevice = mkOption {
|
||||
default = "";
|
||||
example = "0:0";
|
||||
description = "
|
||||
Device for manual resume attempt during boot. Looks like
|
||||
major:minor. ls -l /dev/SWAP_PARTION shows them.
|
||||
";
|
||||
};
|
||||
|
||||
hardwareScan = mkOption {
|
||||
default = true;
|
||||
description = "
|
||||
|
@ -50,34 +41,6 @@ in
|
|||
";
|
||||
};
|
||||
|
||||
initrd = {
|
||||
|
||||
allowMissing = mkOption {
|
||||
default = false;
|
||||
description = ''
|
||||
Allow some initrd components to be missing. Useful for
|
||||
custom kernel that are changed too often to track needed
|
||||
kernelModules.
|
||||
'';
|
||||
};
|
||||
|
||||
lvm = mkOption {
|
||||
default = true;
|
||||
description = "
|
||||
Whether to include lvm in the initial ramdisk. You should use this option
|
||||
if your ROOT device is on lvm volume.
|
||||
";
|
||||
};
|
||||
|
||||
enableSplashScreen = mkOption {
|
||||
default = true;
|
||||
description = "
|
||||
Whether to show a nice splash screen while booting.
|
||||
";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
copyKernels = mkOption {
|
||||
default = false;
|
||||
description = "
|
||||
|
|
Loading…
Reference in a new issue