Merge pull request #90261 from prusnak/installer-zstd-rm

images: remove original files when using zstd for compression
This commit is contained in:
Peter Hoeg 2020-06-14 10:39:10 +08:00 committed by GitHub
commit eb62c7edc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ fi
if test -n "$compressImage"; then if test -n "$compressImage"; then
echo "Compressing image..." echo "Compressing image..."
zstd -T$NIX_BUILD_CORES $out/iso/$isoName zstd -T$NIX_BUILD_CORES --rm $out/iso/$isoName
fi fi
mkdir -p $out/nix-support mkdir -p $out/nix-support

View File

@ -190,7 +190,7 @@ in
fsck.vfat -vn firmware_part.img fsck.vfat -vn firmware_part.img
dd conv=notrunc if=firmware_part.img of=$img seek=$START count=$SECTORS dd conv=notrunc if=firmware_part.img of=$img seek=$START count=$SECTORS
if test -n "$compressImage"; then if test -n "$compressImage"; then
zstd -T$NIX_BUILD_CORES $img zstd -T$NIX_BUILD_CORES --rm $img
fi fi
''; '';
}) {}; }) {};