Don't honour --status-quo when boot macOS recovery

This commit is contained in:
Martin Wimpress 2021-09-30 19:00:42 +01:00
parent 6ea4fa812f
commit d6cbcf29ee
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -280,12 +280,16 @@ function vm_boot() {
fi
# Has the status quo been requested?
if [ "${STATUS_QUO}" == "-snapshot" ] && [ -z "${iso}" ]; then
if [ "${STATUS_QUO}" == "-snapshot" ]; then
if [ -z "${img}" ] && [ -z "${iso}" ]; then
echo " Existing disk state will be preserved, no writes will be committed."
fi
fi
if [ -n "${iso}" ] && [ -e "${iso}" ]; then
echo " - Boot: ${iso}"
echo " - Boot ISO: ${iso}"
elif [ -n "${img}" ] && [ -e "${img}" ]; then
echo " - Recovery: ${img}"
fi
if [ -n "${fixed_iso}" ] && [ -e "${fixed_iso}" ]; then