From c58a568f64ed34a39cd010d031ee29feaf8e0f8e Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 14 Jul 2021 09:51:39 +0200 Subject: [PATCH] Remove original images when creating zip (#1461) Other compression methods remove the original image file at compression. Add the -m (move) command to zip to do the same when compressing with zip. This saves some space in the builds image/release directory. --- buildroot-external/scripts/hdd-image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildroot-external/scripts/hdd-image.sh b/buildroot-external/scripts/hdd-image.sh index a1c7ca0b5..23fd20763 100755 --- a/buildroot-external/scripts/hdd-image.sh +++ b/buildroot-external/scripts/hdd-image.sh @@ -324,5 +324,5 @@ function convert_disk_image_zip() { local hdd_img="$(hassos_image_name "${hdd_ext}")" rm -f "${hdd_img}.zip" - zip -j -q -r "${hdd_img}.zip" "${hdd_img}" + zip -j -m -q -r "${hdd_img}.zip" "${hdd_img}" }