make-initrd: allow specifying name

Also moves the argument defaults out of all-packages.nix and into
make-initrd itself.
This commit is contained in:
Linus Heckemann 2019-04-13 22:29:47 +02:00
parent 8a0b2714fb
commit 3b16f345b5
2 changed files with 6 additions and 6 deletions

View File

@ -12,11 +12,14 @@
# `contents = {object = ...; symlink = /init;}' is a typical
# argument.
{ stdenv, perl, cpio, contents, compressor, prepend, ubootTools
{ stdenv, perl, cpio, contents, ubootTools
, name ? "initrd"
, compressor ? "gzip -9n"
, prepend ? []
}:
stdenv.mkDerivation rec {
name = "initrd";
inherit name;
builder = ./make-initrd.sh;
makeUInitrd = stdenv.hostPlatform.platform.kernelTarget == "uImage";

View File

@ -330,10 +330,7 @@ in
makeAutostartItem = callPackage ../build-support/make-startupitem { };
makeInitrd = { contents, compressor ? "gzip -9n", prepend ? [ ] }:
callPackage ../build-support/kernel/make-initrd.nix {
inherit contents compressor prepend;
};
makeInitrd = callPackage ../build-support/kernel/make-initrd.nix; # Args intentionally left out
makeWrapper = makeSetupHook { deps = [ dieHook ]; substitutions = { shell = pkgs.runtimeShell; }; }
../build-support/setup-hooks/make-wrapper.sh;