fix(xo-web/VM/advanced): fix 'firmware not supported' for UEFI (#7767)

Introduced by 68e99a2
See https://xcp-ng.org/forum/topic/8878/uefi-firmware-not-supported
This commit is contained in:
Mathieu
2024-06-24 14:58:23 +02:00
committed by GitHub
parent cfcc78b6d8
commit 758e3c47b8
2 changed files with 6 additions and 1 deletions

View File

@@ -24,6 +24,7 @@
- [Backups] Fix EEXIST error after an interrupted mirror backup job ([PR #7694](https://github.com/vatesfr/xen-orchestra/pull/7694))
- [Netbox] Fix "Netbox error could not be retrieved" when an error occurs on Netbox's side (PR [#7758](https://github.com/vatesfr/xen-orchestra/pull/7758))
- [XOSTOR] Fix the _Approximate SR Capacity_ sometimes showing as 0 if not all hosts had disks (PR [#7765](https://github.com/vatesfr/xen-orchestra/pull/7765))
- [VM/Advanced] Ignore `Firmware not supported` warning for UEFI boot firmware [Forum#8878](https://xcp-ng.org/forum/topic/8878/uefi-firmware-not-supported) (PR [#7767](https://github.com/vatesfr/xen-orchestra/pull/7767))
### Packages to release

View File

@@ -1030,7 +1030,11 @@ export default class TabAdvanced extends Component {
onChange={this._handleBootFirmware}
value={defined(() => vm.boot.firmware, '')}
/>
{!vm.isFirmwareSupported && (
{/**
* Templates report UEFI is not supported
* See https://xcp-ng.org/forum/post/76412
*/}
{vm.boot.firmware !== 'uefi' && !vm.isFirmwareSupported && (
<span className='text-danger font-weight-bold'>
<Icon icon='error' /> {_('firmwareNotSupported')}
</span>