Skip to content

Commit

Permalink
use zstd to compress
Browse files Browse the repository at this point in the history
  • Loading branch information
neil committed Sep 15, 2024
1 parent 557cb94 commit 89fb89c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fi
setup() {
if isLinux; then
sudo apt-get update
sudo apt-get install -y libvirt-daemon-system virt-manager qemu-kvm qemu-system-arm libosinfo-bin axel
sudo apt-get install -y zstd libvirt-daemon-system virt-manager qemu-kvm qemu-system-arm libosinfo-bin axel

sudo apt-get install -y tesseract-ocr python3-pil tesseract-ocr-eng tesseract-ocr-script-latn python3-pip python3-opencv
if ! pip3 install --break-system-packages pytesseract vncdotool opencv-python ; then
Expand Down Expand Up @@ -497,11 +497,11 @@ exportOVA() {
fi

_sor="$($_SUDO_VIR_ virsh domblklist $_osname | grep -E -o '/.*qcow2')"

sudo split -b 2000M -d -a 1 "$_sor" "$_ova."
echo "$_sor"
sudo zstd -c "$_sor" | split -b 2000M -d -a 1 - "$_ova.zst."
ls -lah
sudo mv "$_ova.0" "$_ova"
sudo chmod +r ${_ova}*
sudo mv "$_ova.zst.0" "$_ova.zst"
sudo chmod +r ${_ova}.zst*
}


Expand Down

0 comments on commit 89fb89c

Please sign in to comment.