mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
qemu: Improve error message for failed firmware autoselection
The current message can be misleading, because it seems to suggest that no firmware of the requested type is available on the system. What actually happens most of the time, however, is that despite having multiple firmwares of the right type to choose from, none of them is suitable because of lacking some specific feature or being incompatible with some setting that the user has explicitly enabled. Providing an error message that describes exactly the problem is not feasible, since we would have to list each candidate along with the reason why we rejected it, which would get out of hand quickly. As a small but hopefully helpful improvement over the current situation, reword the error message to make it clearer that the culprit is not necessarily the firmware type, but rather the overall domain configuration. Suggested-by: Michael Kjörling <7d1340278307@ewoof.net> Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
e45240d37f
commit
1839c5c46e
@ -1854,7 +1854,7 @@ qemuFirmwareFillDomain(virQEMUDriver *driver,
|
||||
}
|
||||
} else {
|
||||
virReportError(VIR_ERR_OPERATION_FAILED,
|
||||
_("Unable to find any firmware to satisfy '%1$s'"),
|
||||
_("Unable to find '%1$s' firmware that is compatible with the current configuration"),
|
||||
virDomainOsDefFirmwareTypeToString(def->os.firmware));
|
||||
return -1;
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
operation failed: Unable to find any firmware to satisfy 'efi'
|
||||
operation failed: Unable to find 'efi' firmware that is compatible with the current configuration
|
||||
|
@ -1 +1 @@
|
||||
operation failed: Unable to find any firmware to satisfy 'efi'
|
||||
operation failed: Unable to find 'efi' firmware that is compatible with the current configuration
|
||||
|
@ -1 +1 @@
|
||||
operation failed: Unable to find any firmware to satisfy 'efi'
|
||||
operation failed: Unable to find 'efi' firmware that is compatible with the current configuration
|
||||
|
@ -1 +1 @@
|
||||
operation failed: Unable to find any firmware to satisfy 'efi'
|
||||
operation failed: Unable to find 'efi' firmware that is compatible with the current configuration
|
||||
|
Loading…
Reference in New Issue
Block a user