Update rebuild_qcow2.sh

This commit is contained in:
spiritLHLS 2023-04-10 15:19:09 +08:00 committed by GitHub
parent dd270bfd7d
commit 247077455e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@ then
echo "virt-customize not found, installing libguestfs-tools"
sudo apt-get update
sudo apt-get install -y libguestfs-tools
sudo apt-get install -y libguestfs-tools --fix-missing
fi
if ! command -v rngd &> /dev/null
@ -12,6 +13,7 @@ then
echo "rng-tools not found, installing rng-tools"
sudo apt-get update
sudo apt-get install -y rng-tools
sudo apt-get install -y rng-tools --fix-missing
fi
# export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1