-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support applying BIOS options without the IPA image
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/ironic/drivers/modules/redfish/bios.py b/ironic/drivers/modules/redfish/bios.py | ||
index 6e72f0bfd..09dc10c94 100644 | ||
--- a/ironic/drivers/modules/redfish/bios.py | ||
+++ b/ironic/drivers/modules/redfish/bios.py | ||
@@ -142,8 +142,8 @@ class RedfishBIOS(base.BIOSInterface): | ||
objects.BIOSSettingList.delete( | ||
task.context, node_id, delete_names) | ||
|
||
- @base.clean_step(priority=0) | ||
- @base.deploy_step(priority=0) | ||
+ @base.clean_step(priority=0, requires_ramdisk=False) | ||
+ @base.deploy_step(priority=0, requires_ramdisk=False) | ||
@base.cache_bios_settings | ||
def factory_reset(self, task): | ||
"""Reset the BIOS settings of the node to the factory default. | ||
@@ -186,9 +186,9 @@ class RedfishBIOS(base.BIOSInterface): | ||
{'node_uuid': node.uuid, 'attrs': current_attrs}) | ||
self._clear_reboot_requested(task) | ||
|
||
- @base.service_step(priority=0, argsinfo=_APPLY_CONFIGURATION_ARGSINFO) | ||
- @base.clean_step(priority=0, argsinfo=_APPLY_CONFIGURATION_ARGSINFO) | ||
- @base.deploy_step(priority=0, argsinfo=_APPLY_CONFIGURATION_ARGSINFO) | ||
+ @base.service_step(priority=0, argsinfo=_APPLY_CONFIGURATION_ARGSINFO, requires_ramdisk=False) | ||
+ @base.clean_step(priority=0, argsinfo=_APPLY_CONFIGURATION_ARGSINFO, requires_ramdisk=False) | ||
+ @base.deploy_step(priority=0, argsinfo=_APPLY_CONFIGURATION_ARGSINFO, requires_ramdisk=False) | ||
@base.cache_bios_settings | ||
def apply_configuration(self, task, settings): | ||
"""Apply the BIOS settings to the node. |