1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

stage-1: provide meaningful names to initrd and module tree

This commit is contained in:
Linus Heckemann 2019-04-13 23:22:56 +02:00
parent 217cfbe11a
commit b499c52de5

View file

@ -11,7 +11,9 @@ let
udev = config.systemd.package;
modulesTree = config.system.modulesTree;
kernel-name = config.boot.kernelPackages.kernel.name or "kernel";
modulesTree = config.system.modulesTree.override { name = kernel-name + "-modules"; };
firmware = config.hardware.firmware;
@ -290,6 +292,7 @@ let
# The closure of the init script of boot stage 1 is what we put in
# the initial RAM disk.
initialRamdisk = pkgs.makeInitrd {
name = "initrd-${kernel-name}";
inherit (config.boot.initrd) compressor prepend;
contents =