- This topic has 0 replies, 1 voice, and was last updated 1 year, 2 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
A customer recently asked, “how can I update BIOS on Ubuntu and DHC systems”? Ubuntu-based systems can take advantage of Linux Vendor Firmware Service located at https://fwupd.org. The Linux Vendor Firmware Service LVFS is a secure portal that allows hardware vendors to upload firmware updates. All major Linux distributions use this site to provide metadata for clients such as fwupdmgr and GNOME Software.
In my case, I created a bash shell script that checks to see if it is running as root, refreshes the firmware catalog, and then performs BIOS/firmware updates.
I have successfully used the script below on 5070s, 3000s, and Precision 3260 running Ubuntu 20.04 and 22.04 with DHC.
———————————————————————-
#!/bin/bash
#check if the script is running as root
if [[ $UIED -ne 0 ]]; then
echo “This script must be run as root.”
exit 1
fi
#Update the firmware using fwupd
echo “Updating firmware…”
fwupdmgr refresh
fwupdmgr update -y
#check the exit code of fwupdmgr
if [[ $? -ne 0 ]]; then
echo “Firmware update failed.”
exit 1
fi
echo “Firmware update completed successfully.”
——————————————————–
NOTES:
Do not use Windows Notepad; it will insert CR LF.
Use Notepad++ or a Linux editor to create files. Notepad++ Set the end of the line to UNIX or LF only.
The script can be pushed using WMS; when uploading into your App repository, check the box to allow for unsigned apps.
When deploying with WMS using App Policy for DHC, select the script in the App and Pre-Install Sections.
You are ready to deploy and update BIOS.
Highly recommend testing on a single system before deploying to mass,.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |