Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parse_libvirt_xml: look for manual firmware in "/domain/os/loader/@type"
According to [1], there're different ways to specify which firmware is to be used by a libvirt-driven VM. Namely, there's an automatic firmware selection, e.g.: ... <os firmware='(bios|efi)'> ... and a manual one, e.g.: ... <os> <loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader> ... </os> ... with the latter being a way to specify UEFI firmware. So let's add this search path as well when parsing source VM's libvirt xml. [1] https://libvirt.org/formatdomain.html#bios-bootloader Co-authored-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com> Originally-by: Denis Plotnikov <dplotnikov@virtuozzo.com> Message-Id: <20221220150133.403120-1-andrey.drobyshev@virtuozzo.com>
- Loading branch information