0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixos/stage-1-init: Pass all parameters to the builder

This is for compatiblity with the old builder to get compat with uboot
support and to prepend microcode updates to the initrd
This commit is contained in:
Janne Heß 2022-04-15 16:37:10 +01:00
parent 0efb6720a4
commit b9bf28fd70
No known key found for this signature in database
GPG key ID: 69165158F05265DF
2 changed files with 18 additions and 1 deletions

View file

@ -125,6 +125,9 @@ let
};
initialRamdisk = pkgs.makeInitrdNG {
name = "initrd-${kernel-name}";
inherit (config.boot.initrd) compressor compressorArgs prepend;
contents = map (path: { object = path; symlink = ""; }) (subtractLists cfg.suppressedStorePaths cfg.storePaths)
++ mapAttrsToList (_: v: { object = v.source; symlink = v.target; }) (filterAttrs (_: v: v.enable) cfg.contents);
};