Skip to content

Include checking for firmware updates in ml4w-install-system-updates using fwupd - #1804

Open
Equalizer5118 wants to merge 6 commits into
mylinuxforwork:mainfrom
Equalizer5118:main
Open

Include checking for firmware updates in ml4w-install-system-updates using fwupd#1804
Equalizer5118 wants to merge 6 commits into
mylinuxforwork:mainfrom
Equalizer5118:main

Conversation

@Equalizer5118

@Equalizer5118 Equalizer5118 commented Aug 24, 2026

Copy link
Copy Markdown

Description

This pull request updates dotifles/.config/ml4w/scripts/ml4w-install-system-updates to check for firmware updates using fwupd automatically, and also gives the user the option to install automatically or manually. The fwupd package is installed by default on Fedora and openSUSE distros, so it is only added as a dependency on Arch.

Changes

  • Improved
  • Bug Fixes
  • Feature
  • Documentation
  • Other

Context

By default, the only way most people have to check for firmware updates is manually via fwupdmgr get-updates, but I figure that this script already runs flatpak update alongside grabbing system package updates, so we may as well use this opportunity to check for firmware updates. I edited my ml4w-install-system-updates script on my pc to automatically check for firmware updates using fwupd, and checks the output to see if any updates are available, asking to install if true.

How Has This Been Tested?

  • Tested on Arch Linux/Based Distro.
  • Tested on Fedora Linux/Based Distro.
  • Tested on openSuse.

I have used these script changes for about 4 months on my personal ml4w install that I have modified to my liking. Other than some issues that I caused with my personal Arch installation, it has worked perfectly, and notified my of firmware updates and even installed them correctly. I test the if statements by flipping the true/false check, and they work well. You can try this as well to check. fwupd comes pre-installed and works on the other 2 advertised distros, so there shouldn't be any issues there.

Checklist

Please ensure your pull request meets the following requirements:

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • My changes do not introduce new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have made corresponding changes to the documentation
  • New and existing unit tests pass locally with my changes.

Screenshots

image NOTE: The "No target found." message is from quickshell. I haven't updated my ML4W installation in a while so it doesn't have the quickshell updates notifier. This should not appear on modern ML4W builds.

Related Issues

Does not relate to any issues.

Additional Notes

None I have found. If the user's installation is atypical (differing EFI boot location) this will fail, but that is the fault of fwupd, not necessarily this script. I have included a catch for these errors, and the script will tell the user if any of these errors are in the output. It also tells the user to refer to the documentation on fwupd instead of making an issue here about the error they receive.

Automatically check for firmware updates when searching for system
updates, runs after updating system packages and flatpak packages and
gives option to install firmware updates now or abort for manual
install.
Returned the intent spacing to its original 4 spaces. My IDE decided to nuke the spacing in the file for some reason...
@Equalizer5118
Equalizer5118 marked this pull request as ready for review August 25, 2026 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant