mirror of
https://github.com/foxlet/macOS-Simple-KVM.git
synced 2024-11-27 05:29:42 +01:00
Skip qcow-img create if macOS.qcow2 exists already
This commit is contained in:
parent
27e8ee170d
commit
d1b9767829
1 changed files with 5 additions and 1 deletions
4
make.sh
4
make.sh
|
@ -57,7 +57,11 @@ install(){
|
|||
## TODO do some input validation
|
||||
|
||||
echo Creating system disk $BOXES_HOME/macOS.qcow2 of size $STORAGE
|
||||
if [[ -e $BOXES_HOME/macOS.qcow2 ]]; then
|
||||
echo "macOS.qcow2 already exist, skipping"
|
||||
else
|
||||
qemu-img create -f qcow2 $BOXES_HOME/macOS.qcow2 $STORAGE
|
||||
fi
|
||||
echo Coping BaseSystem.img and ESP.qcow2 in $BOXES_HOME
|
||||
cp -Zfu BaseSystem.img $BOXES_HOME
|
||||
cp -Zfu ESP.qcow2 $BOXES_HOME
|
||||
|
|
Loading…
Reference in a new issue