Add ARKANIUM_NO_TAR

This commit is contained in:
Dennis ten Hoove 2023-08-14 08:50:48 +02:00
parent 9f48e92c4a
commit 06222691e8

View file

@ -14,6 +14,10 @@ if [[ ! -n $1 || -n $2 ]]; then
Variants are loaded based on their directory names, the ones listed here
are included by default.
Variables:
ARKANIUM_NO_TAR Do not create a compressed tarball, only create the images
ARKANIUM_OVERWRITE_RANDOM Define a custom image name
END
exit 0
fi
@ -170,8 +174,10 @@ if [[ $type == 'archlinux' ]]; then
btrfs send -f $output_target/$image_name/$image_name-etc.img $workdir/etc
btrfs send -f $output_target/$image_name/$image_name-var.img $workdir/var
printf "\e[1;34m-->\e[0m\e[1m Compressing images...\e[0m\n"
tar -cv -I 'zstd -12 -T0 ' -f $output_target/$image_name.tar.zst $output_target/$image_name
if [[ ! -v ARKANIUM_NO_TAR ]]; then
printf "\e[1;34m-->\e[0m\e[1m Compressing images...\e[0m\n"
tar -cv -I 'zstd -12 -T0 ' -f $output_target/$image_name.tar.zst $output_target/$image_name
fi
cleanup_and_quit