mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 21:21:44 +00:00
refactor: remove persistent property if unchecked
Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
parent
6d5139a994
commit
31a9abd5c2
@ -1392,7 +1392,6 @@ export default {
|
|||||||
setBootMethod(boot = { efi: false, secureBoot: false, efiPersistentStateEnabled: false }) {
|
setBootMethod(boot = { efi: false, secureBoot: false, efiPersistentStateEnabled: false }) {
|
||||||
if (boot.efi) {
|
if (boot.efi) {
|
||||||
set(this.spec.template.spec.domain, 'firmware.bootloader.efi.secureBoot', boot.secureBoot);
|
set(this.spec.template.spec.domain, 'firmware.bootloader.efi.secureBoot', boot.secureBoot);
|
||||||
set(this.spec.template.spec.domain, 'firmware.bootloader.efi.persistent', boot.efiPersistentStateEnabled);
|
|
||||||
} else {
|
} else {
|
||||||
delete this.spec.template.spec.domain['firmware'];
|
delete this.spec.template.spec.domain['firmware'];
|
||||||
delete this.spec.template.spec.domain.features['smm'];
|
delete this.spec.template.spec.domain.features['smm'];
|
||||||
@ -1412,6 +1411,12 @@ export default {
|
|||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (boot.efiPersistentStateEnabled) {
|
||||||
|
set(this.spec.template.spec.domain, 'firmware.bootloader.efi.persistent', true);
|
||||||
|
} else {
|
||||||
|
delete this.spec.template.spec.domain.firmware.bootloader.efi['persistent'];
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
setCpuPinning(value) {
|
setCpuPinning(value) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user