Add option to postprocessing script to allow skipping VBox integration

This commit is contained in:
Curle 2021-06-16 21:05:16 +01:00
parent 439e1d9040
commit 49f3afbecb
Signed by: TheCurle
GPG Key ID: 5942F13718443F79

View File

@ -5,7 +5,7 @@ mkdir -p bin/img
./tools/mkbootimg/mkbootimg.exe chroma.json bin/img/chroma.img # for linux remove the .exe ./tools/mkbootimg/mkbootimg.exe chroma.json bin/img/chroma.img # for linux remove the .exe
echo "Checking for VirtualBox management tools" echo "Checking for VirtualBox management tools"
if [ -x "$(command -v VBoxManage)" ]; then if [ -x "$(command -v VBoxManage)" ] && [ $# -eq 0 ]; then
echo " VBoxManage found.. integrating." echo " VBoxManage found.. integrating."
echo " Clearing VirtualBox cache:" echo " Clearing VirtualBox cache:"
VBoxManage storageattach Chroma --port 0 --storagectl AHCI --medium none # removing a drive in virtualbox = attaching nothing VBoxManage storageattach Chroma --port 0 --storagectl AHCI --medium none # removing a drive in virtualbox = attaching nothing
@ -15,5 +15,6 @@ VBoxManage convertfromraw bin/img/chroma.img --format VDI bin/img/chroma.vdi # g
echo " Attaching image to the VM." echo " Attaching image to the VM."
VBoxManage storageattach Chroma --port 0 --storagectl AHCI --type hdd --medium "`pwd`/bin/img/chroma.vdi" # attach the new vdi to the vm so we can run it VBoxManage storageattach Chroma --port 0 --storagectl AHCI --type hdd --medium "`pwd`/bin/img/chroma.vdi" # attach the new vdi to the vm so we can run it
echo " VirtualBox integrations complete. You may execute run.sh to run your VirtualBox VM." echo " VirtualBox integrations complete. You may execute run.sh to run your VirtualBox VM."
else
echo " VBoxManage not found or skipped."
fi fi