This commit is contained in:
TheMuso 2024-05-15 19:37:35 +01:00 committed by GitHub
commit cc5b67c4e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -623,7 +623,7 @@ function configure_storage() {
esac
# https://blog.programster.org/qcow2-performance
if ! ${QEMU_IMG} create -q -f "${disk_format}" -o lazy_refcounts=on,preallocation="${preallocation}" "${disk_img}" "${disk_size}"; then
if ! ${QEMU_IMG} create -q -f "${disk_format}" -o lazy_refcounts=on,preallocation="${preallocation}",nocow=on "${disk_img}" "${disk_size}"; then
echo "ERROR! Failed to create ${disk_img} using ${disk_format} format."
exit 1
fi