A previous commit had moved this logic from the generic
postparse code to drivers but failed to update the bhyve driver
accordingly in the process.

Fixes: 1504b7f687bdfc679377e605d076776b18533468
Signed-off-by: Andrea Bolognani <[email protected]>
---
Pushed under the build breaker rule.

 src/bhyve/bhyve_domain.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/bhyve/bhyve_domain.c b/src/bhyve/bhyve_domain.c
index 8fc9733756..85960c6e12 100644
--- a/src/bhyve/bhyve_domain.c
+++ b/src/bhyve/bhyve_domain.c
@@ -135,6 +135,12 @@ bhyveDomainDefPostParse(virDomainDef *def,
         }
     }
 
+    if (def->os.loader &&
+        def->os.loader->path &&
+        !def->os.loader->type) {
+        def->os.loader->type = VIR_DOMAIN_LOADER_TYPE_ROM;
+    }
+
     return 0;
 }
 
-- 
2.53.0

Reply via email to