diff options
author | William A. Kennington III <william@wkennington.com> | 2015-03-25 12:03:03 -0700 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2015-03-25 14:14:46 -0700 |
commit | f2655e4fa0065aab52d7616e3b3ec8eb8cc24ddb (patch) | |
tree | f323b654b10f74f15fb6d41ba92e1686e8a691fb /nixos/modules/system | |
parent | 8baaff95e6636174ebdf01abe91a4c351234c0ff (diff) | |
download | nixlib-f2655e4fa0065aab52d7616e3b3ec8eb8cc24ddb.tar nixlib-f2655e4fa0065aab52d7616e3b3ec8eb8cc24ddb.tar.gz nixlib-f2655e4fa0065aab52d7616e3b3ec8eb8cc24ddb.tar.bz2 nixlib-f2655e4fa0065aab52d7616e3b3ec8eb8cc24ddb.tar.lz nixlib-f2655e4fa0065aab52d7616e3b3ec8eb8cc24ddb.tar.xz nixlib-f2655e4fa0065aab52d7616e3b3ec8eb8cc24ddb.tar.zst nixlib-f2655e4fa0065aab52d7616e3b3ec8eb8cc24ddb.zip |
makeInitrd: Support prepending other initrds
Diffstat (limited to 'nixos/modules/system')
-rw-r--r-- | nixos/modules/system/boot/stage-1.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix index 16bebe03740a..2c3dfd2f460f 100644 --- a/nixos/modules/system/boot/stage-1.nix +++ b/nixos/modules/system/boot/stage-1.nix @@ -205,7 +205,7 @@ let # The closure of the init script of boot stage 1 is what we put in # the initial RAM disk. initialRamdisk = pkgs.makeInitrd { - inherit (config.boot.initrd) compressor; + inherit (config.boot.initrd) compressor prepend; contents = [ { object = bootStage1; @@ -247,6 +247,14 @@ in ''; }; + boot.initrd.prepend = mkOption { + default = [ ]; + type = types.listOf types.str; + description = '' + Other initrd files to prepend to the final initrd we are building. + ''; + }; + boot.initrd.checkJournalingFS = mkOption { default = true; type = types.bool; |