stage-1: provide meaningful names to initrd and module tree
This commit is contained in:
parent
217cfbe11a
commit
b499c52de5
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user