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; 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; 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 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 {
name = "initrd-${kernel-name}";
inherit (config.boot.initrd) compressor prepend; inherit (config.boot.initrd) compressor prepend;
contents = contents =