mirror of
https://github.com/foxlet/macOS-Simple-KVM.git
synced 2024-06-02 06:03:31 +02:00
If QEMU on path is new enough, use qemu-img for dmg conversion instead.
This commit is contained in:
parent
5273550f00
commit
43d1cb9260
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@
|
|||
BaseSystem.img
|
||||
BaseSystem.dmg
|
||||
BaseSystem.chunklist
|
||||
template.xml
|
||||
|
|
|
@ -36,4 +36,5 @@ case $argument in
|
|||
;;
|
||||
esac
|
||||
|
||||
"$TOOLS/dmg2img" "$TOOLS/FetchMacOS/BaseSystem/BaseSystem.dmg" "$PWD/BaseSystem.img"
|
||||
QEMU_IMG_VERSION="$(qemu-img --version | awk '/version/ {print $NF}')"
|
||||
[ "${QEMU_IMG_VERSION%%.*}" -ge 4 ] && qemu-img convert "${TOOLS}/FetchMacOS/BaseSystem/BaseSystem.dmg" -O raw "${PWD}/BaseSystem.img" || "${TOOLS}/dmg2img" "${TOOLS}/FetchMacOS/BaseSystem/BaseSystem.dmg" "${PWD}/BaseSystem.img"
|
||||
|
|
Loading…
Reference in New Issue
Block a user