mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
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:
parent
8a0b2714fb
commit
3b16f345b5
@ -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";
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user