omniosorg / zadm

zone management tool
https://omnios.org/setup/zadm
GNU General Public License v3.0
24 stars 8 forks source link

Can't set bootrom to a path for bhyve brand #102

Closed sjorge closed 2 years ago

sjorge commented 2 years ago

I was trying to test a bootrom for Andy and saved it somewhere not under /usr ... but zadm rejected it with:

root: Execution of validator for 'bootrom' returns with error: expected a value from the list: BHYVE, BHYVE_CSM, BHYVE_DEBUG, BHYVE_DEBUG_CSM, BHYVE_RELEASE, BHYVE_RELEASE_CSM, OVMF_DEBUG, OVMF_RELEASE

I had it set to:

   "bootrom" : "/var/BHYVE_RELEASE-202111.fd",

According to the bhyve brand's boot script it should be supported:

https://github.com/omniosorg/pkg5/blob/master/src/brand/bhyve/boot.py#L500-L508