varlink: add varlink interface for syncing fwupd capsule updates across ESPs - #1138
Open
Rolv-Apneseth wants to merge 1 commit into
Open
varlink: add varlink interface for syncing fwupd capsule updates across ESPs#1138Rolv-Apneseth wants to merge 1 commit into
Rolv-Apneseth wants to merge 1 commit into
Conversation
Member
Author
|
CI failures related to coreos/fedora-coreos-config#4261 |
Member
Author
|
I'll include a quick note on why we even need this: Typical RAID setups only have a single ESP, but CoreOS duplicates the ESP as plain vfat partitions across all disks, which are all updated by |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is related to coreos/fedora-coreos-tracker#1623, and adds a varlink interface that
fwupdcan use to tellbootupdto sync firmware capsule updates to other co-located ESPs for our RAID setups (redundant ESPs).There is already a related
fwupdPR, which @hughsie built against a copr project I created. The tests included here should confirm we're working as intended though.The way it works is it accepts a
partuuidof the device the update was written to, and acapsule_dirwith the relative path to the update dir on the device, and syncs those updates across co-located ESPs by mounting each in turn. On my system, I can interact with the interface like this:Couple notes:
varlinksubcommand underbootupdsince it shouldn't be user-facingfedora-coreos-config. We'll also need to haveudisks2forfwupdto work as intended.zlinkrequired an async runtime, I chosesmolas a lightweight option