efivar tool manages unified extensible firmware interface (UEFI) environment variables stored in the non-volatile firmware storage. Use these variables to configure the UEFI firmware and its environment.
The efivars are key-value pairs stored in the UEFI firmware. They hold settings for boot configuration, system state, and other essential parameters. The efivars manage boot entries and firmware settings, ensuring the system boots correctly and maintains its configuration.
To interact with the UEFI environment variables, use the following command:
-n name: Specify the name of the UEFI variable.-f file: Load or save variable contents from a file.-p: Print the value of the specified UEFI variable.-w: Write to the specified UEFI variable.
Update the OsIndications variable
To update the OsIndications variable and verify the value of the EFI variable, do the following:
- Create a
data.hexfile containing a specific byte sequence04 00 00 00 00 00 00 00. - Write the contents of
data.hexto the EFI variable8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndications. - To verify the value of the EFI variable
8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndications, run the following command:Output of the previous command:
Update the VendorDtbOverlays variable
To update the VendorDtbOverlays variable and verify the value of the EFI variable, do the following:
- Create a
/var/datafile containing datacamx. - Write the contents of
/var/datato the EFI variable882f8c2b-9646-435f-8de5-f208ff80c1bd-VendorDtbOverlays. - To verify the value of the EFI variable
882f8c2b-9646-435f-8de5-f208ff80c1bd-VendorDtbOverlays, run the following command:Output of the previous command:

