Repository navigation
extras: files - #2711
Merged
Merged
extras: files#2711
Conversation
New `FileImage` pipeline to extract a single file from a disk image. To be used as an "extra". We run this late in the build (after the disk image has been assembled) so that the bootloader (systemd-boot runs in the image pipeline) has done its thing. That's done specifically so we can copy out UKIs that are created by `kernel-install`. Signed-off-by: Simon de Vlieger <[email protected]>
Implement File extras support. Similar to all the other extras. Signed-off-by: Simon de Vlieger <[email protected]>
Add the "file" extra type to the distro definitions loader and image
type. This allows image types to declare files to extract from the
assembled disk image via the extras YAML:
```
extras:
files:
grubenv:
path: /boot/efi/EFI/redhat/grub.env
compression: xz
```
Signed-off-by: Simon de Vlieger <[email protected]>
This was referenced Sep 23, 2026
brlane-rht
approved these changes
Sep 24, 2026
brlane-rht
left a comment
Contributor
There was a problem hiding this comment.
Looks ok to me. I'm not totally clear on what all these extra extra commits aere supposed to be doing though, they are missing documentation and context for someone who hasn't been part of the design discussions.
Member
Author
There's (a bit of) backstory here: #2662 and here #2632 and we've discussed it during the office hours; but we're not recording the office hours and we really should. I'll make sure we do in the future. I'll also be doing a presentation on all of this soon 🙂 |
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.
In #2700 I introduced the concept of "extras". We started with
partitionandsysext. This PR adds another extrafilewhich allows to copy out a single file from the assembled disk image. We run this very late because we want to run after the image is in its final state (bootloader has been installed,systemd-bootinstalls during theimagepipeline).The (first) concrete application is that this allows to copy out the UKI built by
kernel-installin earlier pipelines which is to be used in #2662 forsystemd-sysupdatebut it's applicable to any file that wants to be shipped separately-yet-together.