* 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, ...}:
|
{pkgs, config, ...}:
|
||||||
|
|
||||||
let
|
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;
|
kernelPackages = config.boot.kernelPackages;
|
||||||
modulesTree = config.system.modulesTree;
|
modulesTree = config.system.modulesTree;
|
||||||
|
|
||||||
@ -199,6 +240,8 @@ let
|
|||||||
|
|
||||||
in {
|
in {
|
||||||
|
|
||||||
|
require = [options];
|
||||||
|
|
||||||
system.build.bootStage1 = bootStage1;
|
system.build.bootStage1 = bootStage1;
|
||||||
system.build.initialRamdisk = initialRamdisk;
|
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 {
|
hardwareScan = mkOption {
|
||||||
default = true;
|
default = true;
|
||||||
description = "
|
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 {
|
copyKernels = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
description = "
|
description = "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user