initramfs: introduce compression

master
Raito Bezarius 1 year ago
parent 94e542b2a8
commit bae6a905ac

@ -26,6 +26,7 @@
, withCryptsetup ? false , withCryptsetup ? false
, withKexec ? false , withKexec ? false
, withNvramTool ? false # nixpkgsOnBuildForHost.stdenv.hostPlatform.isx86 , withNvramTool ? false # nixpkgsOnBuildForHost.stdenv.hostPlatform.isx86
, compress ? false
}: }:
let let
@ -39,7 +40,7 @@ six-initrd.override {
inherit lib; inherit lib;
pkgsForBuild = nixpkgsOnBuildForBuild; pkgsForBuild = nixpkgsOnBuildForBuild;
pkgsForHost = nixpkgsOnBuildForHost; pkgsForHost = nixpkgsOnBuildForHost;
inherit kernel modules; inherit kernel modules compress;
contents = lib.optionalAttrs withSignify { contents = lib.optionalAttrs withSignify {
"bin/signify" = "${signify}/bin/signify"; "bin/signify" = "${signify}/bin/signify";
} // lib.optionalAttrs withLvm { } // lib.optionalAttrs withLvm {

Loading…
Cancel
Save