[PATCH 15/16] Enable booting from hostdevs with bhyve

Ryan Moeller ryan at ixsystems.com
Sat Feb 22 06:38:54 UTC 2020


Signed-off-by: Ryan Moeller <ryan at iXsystems.com>
---
 src/bhyve/bhyve_command.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/bhyve/bhyve_command.c b/src/bhyve/bhyve_command.c
index dbf6fbf168..14e80e6eec 100644
--- a/src/bhyve/bhyve_command.c
+++ b/src/bhyve/bhyve_command.c
@@ -997,11 +997,8 @@ virBhyveGetBootDisk(virDomainDefPtr def)
     virDomainDiskDefPtr match = NULL;
     int boot_dev = -1;
 
-    if (def->ndisks < 1) {
-        virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                       _("Domain should have at least one disk defined"));
+    if (def->ndisks == 0)
         return NULL;
-    }
 
     if (def->os.nBootDevs > 1) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-- 
2.24.1





More information about the libvir-list mailing list