flash-list¶
List of flash images to apply.
This parameter contains a list of files to retrieve and run against the system.
The list contains objects that specify a type (RPM or BIN) and a URL or file to retrieve the files directory.
If not specified, the system will attempt to update to the latest block release. If the list is empty, nothing is updated.
You must specify a File per entry in this list, no matter what the Type is.
If the file does not begin with http, then the task assumes it can be downloaded
from the dr-provision file server at the specified location.
Each entry will be recorded in the flash list installed parameter. The recorded items
will not be run again until the installed list is cleared. For items that should always be run,
set the Always field to true. This will cause the item to be run every time. Always is
assumed to be false if not specified.
For the reboot and reboot-if-wanted types, the File entry should be a unique identifier in the list.
Leaving it empty or not unique will have unexpected results.
The flash-list param currently understand the following flash types:
- rpm is an HPE provided firmware update package supplied in RPM format.
The update will be performed using the embedded setup command.
- fwpkg is an HPE-provided raw firmware update package. The update
will be performed via the iLO using the ilorest command.
- bin is a Dell provided Linux firmware update package. The update
will be performed by running the package.
- exe is a Dell provided Windows firmware update package. The update
will be performed by uploading the update package to the iDRAC using
a Dell-provided redfish update script.
- catalog is a Dell provided catalog for single device updates. The update will be
performed with racadm using the catalog to verify the installed version. The catalog
server URL defaults to the DRP provisioner URL but can be overridden with the
flash-dell-update-server param.
- onecli is a Lenovo-provided firmware update package. The update will
be performed using OneCLI.
- redfish is any firmware image the BMC can take over Redfish. The update
will be performed by the BMC through the ipmi plugin's updateFirmware action.
- reboot will force the system to unilaterally reboot. Flash updates will
resume at the next entry in the list.
- reboot-if-wanted will trigger a reboot if previous firmware packages signalled that
they want a reboot.
- script will attempt to flash the firmware package by sourcing the script provided in
the Script field. See the comments contained in the flash-list.sh.tmpl template
for details on what environment variables the embedded script should use and what it should
set if the package needs a reboot or encountered an error.
redfish entries use the ipmi/* params for BMC access and accept these extra fields:
- Target is the Redfish firmware inventory id, such as BMC or BIOS, or a full /redfish/...
path. Leave it unset for a bundle whose manifest selects the targets.
- ApplyTime is the Redfish apply time, Immediate by default. OnReset stages the image
and the reboot at the end of the list applies it.
- PowerCycle marks an image that needs a full power cycle to activate.
- ACPowerCycle marks an image that needs AC power removed to activate.
- Version is the version the image installs, recorded for audits. When unset, the version the
BMC reports for Target is recorded in flash-list-installed.
Example:
---
flash-list:
- File: files/flash/dell/IdracUpdate.bin
Type: bin # Dell binary update package
- File: files/flash/dell/BiosUpdate.exe
Type: exe # Dell .EXE update to hand over to the iDRAC.
- File: files/flash/hpe/IloUpdate.rpm
Type: rpm # HPe RPM firmware update file.
Force: true # Force the flash whether it is a downgrade or not.
- File: first-reboot
Type: reboot # Unilaterally force a reboot here.
- File: files/flash/hpe/BiosUpdate.fwpkg
Type: fwpkg # HPe update package for Redfish
- File: files/flash/lenovo/BiosUpdate.pkg
Type: onecli # Lenovo firmware update package
- File: files/flash/supermicro/SUM_Service_20250805.tar.gz
Type: sumsvc # Supermicro all-in-one flash tool. This may flash multiple devices of different types.
- File: files/flash/acme/bmc-1.2.3.bin
Type: redfish # Handed to the BMC over Redfish.
Target: BMC # Redfish firmware inventory id.
- File: files/flash/acme/bios-4.5.6.bin
Type: redfish
Target: BIOS
ApplyTime: OnReset # Stage it; the reboot at the end of the list applies it.
Version: "4.5.6" # Expected version, for audits.
- File: files/flash/acme/cpld-2.0.bin
Type: redfish
Target: CPLD
PowerCycle: true # Needs a full power cycle, not a warm reboot.
- File: files/flash/acme/prot-1.1.bin
Type: redfish
Target: PROT
ACPowerCycle: true # Needs AC dropped; a power cycle is not enough.
- File: https://example.com/fw/bundle.pldm
Type: redfish # No Target: the bundle's own manifest says what to flash.
- File: files/flash/supermicro/BMC.bin
Type: script # script update
Script: |
# This relies on the supermicro helper being pulled in to provide
# a boilerplate wrapper around the `sum` command.
# The wrapper verifies that the SUM binary has the basic capabilities needed
# to signal that a reboot is needed and to avoid downgrading firmware if not called for.
sum UpdateBios
- File: files/flash/supermicro/bk.bin
Type: script
Script: |
# You may also pass in extra arguments if the flash process needs it.
# They are passed unaltered to the SUM binary.
sum UpdateBackplaneCpld --index=0 --manual_ejected
- File: files/flash/supermicro/nic.bin
Type: script
Script: |
# You may also flash multiple devices at a time, provided you pay attention to
# the want_reboot variable and the exit code from sum.
sum UpdateAocNic --dev-id=1 || return $?
[[ $want_reboot ]] && return 0
sum UpdateAocNic --dev-id=2
Objects that Reference flash-list¶
- profiles global-hw-repo in Hardware Tooling as part of Params (declared)
- tasks flash-discover in Firmware Flash as part of Templates.[0].Contents (used)
- tasks hpe-firmware-flash-list in Firmware Flash as part of Templates.[0].Contents (used)
- tasks dell-firmware-flash-list in Firmware Flash as part of Templates.[2].Contents (used)
- tasks lenovo-firmware-flash-list in Firmware Flash as part of Templates.[0].Contents (used)
- templates flash-list.sh.tmpl in Firmware Flash as part of Contents (used)
- templates flash-choice.sh.tmpl in Firmware Flash as part of Contents (used)
Objects used by flash-list¶
Not used in current content packs