summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/vmd/vmd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/vmd/vmd.c b/usr.sbin/vmd/vmd.c
index ee4481711f8..3f0cfff2f23 100644
--- a/usr.sbin/vmd/vmd.c
+++ b/usr.sbin/vmd/vmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmd.c,v 1.107 2018/12/04 08:15:09 claudio Exp $ */
+/* $OpenBSD: vmd.c,v 1.108 2018/12/09 12:26:38 claudio Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -452,7 +452,8 @@ vmd_dispatch_vmm(int fd, struct privsep_proc *p, struct imsg *imsg)
__func__, vmr.vmr_id);
break;
}
- if (vmr.vmr_result != EAGAIN) {
+ if (vmr.vmr_result != EAGAIN ||
+ vm->vm_params.vmc_bootdevice) {
if (vm->vm_from_config)
vm_stop(vm, 0, __func__);
else