diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2020-06-08 12:08:51 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2020-06-08 12:08:51 +0200 |
commit | 8576d24b2ac27a216b6e32b167c258ae4f8bfe69 (patch) | |
tree | 1681d9aeddb08a34c1e6fc49df025adc77d5fbf5 /nixos/modules/installer/cd-dvd | |
parent | 5f47c36752c167131d8e77e59b9374d7e0da7353 (diff) | |
parent | dc33419285c09720de70fe8edf5434736a2462b9 (diff) | |
download | nixlib-8576d24b2ac27a216b6e32b167c258ae4f8bfe69.tar nixlib-8576d24b2ac27a216b6e32b167c258ae4f8bfe69.tar.gz nixlib-8576d24b2ac27a216b6e32b167c258ae4f8bfe69.tar.bz2 nixlib-8576d24b2ac27a216b6e32b167c258ae4f8bfe69.tar.lz nixlib-8576d24b2ac27a216b6e32b167c258ae4f8bfe69.tar.xz nixlib-8576d24b2ac27a216b6e32b167c258ae4f8bfe69.tar.zst nixlib-8576d24b2ac27a216b6e32b167c258ae4f8bfe69.zip |
Merge staging-next into staging
Diffstat (limited to 'nixos/modules/installer/cd-dvd')
-rw-r--r-- | nixos/modules/installer/cd-dvd/iso-image.nix | 2 | ||||
-rw-r--r-- | nixos/modules/installer/cd-dvd/sd-image.nix | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix index cce7cc235ec8..1cd2252ecf24 100644 --- a/nixos/modules/installer/cd-dvd/iso-image.nix +++ b/nixos/modules/installer/cd-dvd/iso-image.nix @@ -413,7 +413,7 @@ in default = false; description = '' Whether the ISO image should be compressed using - <command>bzip2</command>. + <command>zstd</command>. ''; }; diff --git a/nixos/modules/installer/cd-dvd/sd-image.nix b/nixos/modules/installer/cd-dvd/sd-image.nix index 4187c01d70eb..589bf74263b9 100644 --- a/nixos/modules/installer/cd-dvd/sd-image.nix +++ b/nixos/modules/installer/cd-dvd/sd-image.nix @@ -105,7 +105,7 @@ in default = true; description = '' Whether the SD image should be compressed using - <command>bzip2</command>. + <command>zstd</command>. ''; }; @@ -130,10 +130,10 @@ in sdImage.storePaths = [ config.system.build.toplevel ]; system.build.sdImage = pkgs.callPackage ({ stdenv, dosfstools, e2fsprogs, - mtools, libfaketime, utillinux, bzip2, zstd }: stdenv.mkDerivation { + mtools, libfaketime, utillinux, zstd }: stdenv.mkDerivation { name = config.sdImage.imageName; - nativeBuildInputs = [ dosfstools e2fsprogs mtools libfaketime utillinux bzip2 zstd ]; + nativeBuildInputs = [ dosfstools e2fsprogs mtools libfaketime utillinux zstd ]; inherit (config.sdImage) compressImage; @@ -143,7 +143,7 @@ in echo "${pkgs.stdenv.buildPlatform.system}" > $out/nix-support/system if test -n "$compressImage"; then - echo "file sd-image $img.bz2" >> $out/nix-support/hydra-build-products + echo "file sd-image $img.zst" >> $out/nix-support/hydra-build-products else echo "file sd-image $img" >> $out/nix-support/hydra-build-products fi @@ -190,7 +190,7 @@ in fsck.vfat -vn firmware_part.img dd conv=notrunc if=firmware_part.img of=$img seek=$START count=$SECTORS if test -n "$compressImage"; then - bzip2 $img + zstd -T$NIX_BUILD_CORES $img fi ''; }) {}; |