On a Tuesday in 2024, Peter Krempa wrote:
'qemuFirmwareEnsureNVRAM' which fills the NVRAM configuration
bits which
may be missing was basing it's decision to do something based on whether
its
the 'path' field was set. This is insufficient if remote
storage is to
be considered.
Use 'virStorageSourceIsEmpty()' instead as that properly considers
remote filesystems and explain why the source is unref'd when the
function decides to rewrite the config.
The 'firmware-auto-efi-format-nvram-qcow2-network-nbd' is modified to
omit filling the 'path' field, which without this fix would result in
the nvram to be reset to a local file.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/qemu/qemu_firmware.c | 11 ++++++-----
...-format-nvram-qcow2-network-nbd.x86_64-latest.args | 2 +-
...i-format-nvram-qcow2-network-nbd.x86_64-latest.xml | 2 +-
...rmware-auto-efi-format-nvram-qcow2-network-nbd.xml | 2 +-
4 files changed, 9 insertions(+), 8 deletions(-)
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano