dracut: reduce closure and suffix DRACUT_PATH

Implements a few usability changes for dracut framework by suffixing
rather than prefixing `DRACUT_PATH` (so that downstream consumers can
more easily override it) and reduce closure size by bundling fewer
default utilities in `DRACUT_PATH`.

Done per comments at https://github.com/NixOS/nixpkgs/pull/210075#discussion_r1088822274.
This commit is contained in:
Lily Foster 2023-02-10 13:35:49 -05:00
parent 10d5d6196a
commit 6e8889d4ae
No known key found for this signature in database
GPG key ID: 49340081E484C893

View file

@ -10,24 +10,17 @@
, bash
, kmod
, binutils
, busybox
, bzip2
, coreutils
, cpio
, findutils
, glibc
, gnugrep
, gnused
, gnutar
, gzip
, kbd
, lvm2
, lz4
, lzop
, procps
, rng-tools
, squashfsTools
, systemd
, util-linux
, xz
, zstd
@ -76,23 +69,16 @@ stdenv.mkDerivation rec {
wrapProgram $out/bin/dracut --prefix PATH : ${lib.makeBinPath [
coreutils
util-linux
]} --prefix DRACUT_PATH : ${lib.makeBinPath [
]} --suffix DRACUT_PATH : ${lib.makeBinPath [
bash
binutils
coreutils
findutils
glibc
gnugrep
gnused
gnutar
kbd
lvm2
procps
rng-tools
squashfsTools
systemd
stdenv.cc.libc # for ldd command
util-linux
busybox
]}
wrapProgram $out/bin/dracut-catimages --set PATH ${lib.makeBinPath [
coreutils