Add ARKANIUM_NO_TAR
This commit is contained in:
parent
9f48e92c4a
commit
06222691e8
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue