summaryrefslogtreecommitdiffstats
path: root/nixos/modules/installer/cd-dvd/sd-image.nix
diff options
context:
space:
mode:
authorPavol Rusnak <pavol@rusnak.io>2020-06-14 00:19:11 +0200
committerPavol Rusnak <pavol@rusnak.io>2020-06-14 00:19:11 +0200
commit490fc040be1c85ab7f61fa72e0cb4cc1a5adec7c (patch)
treed3c61dee0645a0bacc967b7d565d9d2cb3c40ca6 /nixos/modules/installer/cd-dvd/sd-image.nix
parent2cb97c36ae153c8d3d83aa115943a6c4fabbab9d (diff)
images: remove original files when using zstd for compression
Diffstat (limited to 'nixos/modules/installer/cd-dvd/sd-image.nix')
-rw-r--r--nixos/modules/installer/cd-dvd/sd-image.nix2
1 files changed, 1 insertions, 1 deletions
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
'';
}) {};