diff options
author | Pavol Rusnak <pavol@rusnak.io> | 2020-06-14 00:19:11 +0200 |
---|---|---|
committer | Pavol Rusnak <pavol@rusnak.io> | 2020-06-14 00:19:11 +0200 |
commit | 490fc040be1c85ab7f61fa72e0cb4cc1a5adec7c (patch) | |
tree | d3c61dee0645a0bacc967b7d565d9d2cb3c40ca6 /nixos | |
parent | 2cb97c36ae153c8d3d83aa115943a6c4fabbab9d (diff) |
images: remove original files when using zstd for compression
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/lib/make-iso9660-image.sh | 2 | ||||
-rw-r--r-- | nixos/modules/installer/cd-dvd/sd-image.nix | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nixos/lib/make-iso9660-image.sh b/nixos/lib/make-iso9660-image.sh index eb9edcd70269..d64fe9a365e7 100644 --- a/nixos/lib/make-iso9660-image.sh +++ b/nixos/lib/make-iso9660-image.sh @@ -129,7 +129,7 @@ fi if test -n "$compressImage"; then echo "Compressing image..." - zstd -T$NIX_BUILD_CORES $out/iso/$isoName + zstd -T$NIX_BUILD_CORES --rm $out/iso/$isoName fi mkdir -p $out/nix-support diff --git a/nixos/modules/installer/cd-dvd/sd-image.nix b/nixos/modules/installer/cd-dvd/sd-image.nix index 589bf74263b9..98c12e30633c 100644 --- a/nixos/modules/installer/cd-dvd/sd-image.nix +++ b/nixos/modules/installer/cd-dvd/sd-image.nix @@ -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 - zstd -T$NIX_BUILD_CORES $img + zstd -T$NIX_BUILD_CORES --rm $img fi ''; }) {}; |