Skip to content

Commit a5fd0c4

Browse files
committed
optimize compression
1 parent 0c1df22 commit a5fd0c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mount_rubikpi3.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if [[ "$base_image" == *.yaml ]]; then
3939
elif [[ "$base_image" == *.tar.xz ]]; then
4040
# Directly download the tar.xz file
4141
wget -nv -O base_image.tar.xz "${base_image}"
42-
tar -xJvf base_image.tar.xz
42+
tar -I 'xz -T0' -xf base_image.tar.xz
4343
else
4444
echo "Error: base_image must be a .yaml manifest or .tar.xz"
4545
exit 1
@@ -212,4 +212,4 @@ find photonvision_rubikpi3 -mindepth 1 -type d -empty -delete
212212
# Set output for later steps
213213
# Save the rootfs image path for later steps
214214
echo "rootfs_image=$ROOTFS_IMG" >> $GITHUB_ENV
215-
tar -cJf photonvision_rubikpi3.tar.xz -C . photonvision_rubikpi3
215+
tar -I 'xz -T0' -cf photonvision_rubikpi3.tar.xz photonvision_rubikpi3

0 commit comments

Comments
 (0)