Add boot.initrd.compressor option
This commit is contained in:
parent
b83be79adf
commit
338ef594c7
@ -95,6 +95,16 @@ let
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.initrd.compressor = mkOption {
|
||||||
|
default = "gzip -9";
|
||||||
|
|
||||||
|
type = types.string;
|
||||||
|
|
||||||
|
description = "The compressor to use on the initrd";
|
||||||
|
|
||||||
|
example = "xz";
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems = mkOption {
|
fileSystems = mkOption {
|
||||||
options.neededForBoot = mkOption {
|
options.neededForBoot = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
@ -317,6 +327,8 @@ let
|
|||||||
# The closure of the init script of boot stage 1 is what we put in
|
# The closure of the init script of boot stage 1 is what we put in
|
||||||
# the initial RAM disk.
|
# the initial RAM disk.
|
||||||
initialRamdisk = pkgs.makeInitrd {
|
initialRamdisk = pkgs.makeInitrd {
|
||||||
|
inherit (config.boot.initrd) compressor;
|
||||||
|
|
||||||
contents =
|
contents =
|
||||||
[ { object = bootStage1;
|
[ { object = bootStage1;
|
||||||
symlink = "/init";
|
symlink = "/init";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user