mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 13:11:43 +00:00
refactor: remove persistent property if unchecked
Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com> (cherry picked from commit 31a9abd5c27b7ecdade9044a682a90faada22d5b)
This commit is contained in:
parent
3e4bc31a9d
commit
1c65b71e35
@ -1392,7 +1392,6 @@ export default {
|
||||
setBootMethod(boot = { efi: false, secureBoot: false, efiPersistentStateEnabled: false }) {
|
||||
if (boot.efi) {
|
||||
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 {
|
||||
delete this.spec.template.spec.domain['firmware'];
|
||||
delete this.spec.template.spec.domain.features['smm'];
|
||||
@ -1412,6 +1411,12 @@ export default {
|
||||
}
|
||||
} 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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user